Comments (9)
Hey there @sergejr ๐
I have no experience with lazysizes
, so I cannot help in getting it working with this library. Is this something that is very important to you?
from react-imgix.
or have you maybe thought of implementing the qlip method or an other method for prerendering images in a way imgix allows?
Would be very nice ๐ค
from react-imgix.
I've never heard of the "qlip method", and I can't find anything online. I'm curious, what is it?
from react-imgix.
Sorry, It was LQIP.. My fault.
It works with a data-src attribute.
https://blog.imgix.com/2016/06/01/lqip-your-images.html
With the React Imgix Component and the usage of the Picture Tag it's not possible to pass a data-attribute with another Image Source. Would be great to archive a Preload "Animation". Or do you have another idea?
Currently I've added customParameter and after this I've written a function to remove the modes from the source URL to archive the preload.
from react-imgix.
Oh cool! We talked about this in #14, but I never got round to implementing it as I didn't need it for my use back then...
Can you share the specifics (i.e. code) of what you're doing now? And would you be interested in contributing this to the library yourself?
from react-imgix.
Here's an example:
https://gist.github.com/sergejr/db8d481e576ba60ea89fdd185fd4207b
from react-imgix.
As that example works with the DOM directly, I'm not comfortable working that into the main component, but a version of this could be worked in to use React state, etc to perform the same effect. Is this something you'd be interested in working on?
from react-imgix.
That's true. I was looking for a Solution without working inside the Package Core to allow further updates.
Yes, I would be interested in working on that Feature.
from react-imgix.
Awesome @sergejr ๐
The first step would be to work out and agree on an API for the feature (aiming to keep it as simple as possible), and then implementing the feature inside the component.
I'll be available here if you need any help.
from react-imgix.
Related Issues (20)
- Add prop to output preload tag HOT 9
- + symbol gets converted into it's corresponding code %2B in generated src and srcset HOT 3
- Imgix doesnโt check if the thereโs a value available in the prop before trying to process the src url HOT 5
- Version 9 over-encodes file paths HOT 19
- Request for support for top-level alt prop HOT 3
- prop-types should be a direct dependency HOT 4
- Height and Weight are set to 0 HOT 2
- HTML Validation: The width/height properties get rendered to HTML <source> element HOT 3
- Version 9 over-encodes file paths for Background Images HOT 2
- React18 support HOT 5
- Version 9.5.1 is sending `react-9.5.1-beta.1` in `ixlib` param HOT 5
- image not showing in microsoft edge HOT 3
- Typesetting Endpoint ~text HOT 2
- Width and height HTML attributes with fluid image HOT 9
- [feat]: work outside of 'use client' directive HOT 6
- NextJS 13 and React Server Components Support HOT 2
- Am I assigning a ref the right way? TS errors when using `htmlAttributes={{ref: ...}}` HOT 1
- Not able to test an Imgix image with Jest
- How to allow `onLoad` callback on Background component
- Background component doesn't utilize ImgixProvider's domain parameter HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-imgix.