Code Monkey home page Code Monkey logo

Comments (9)

frederickfogerty avatar frederickfogerty commented on July 17, 2024

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.

sergejreznik avatar sergejreznik commented on July 17, 2024

Hey @frederickfogerty

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.

frederickfogerty avatar frederickfogerty commented on July 17, 2024

I've never heard of the "qlip method", and I can't find anything online. I'm curious, what is it?

from react-imgix.

sergejreznik avatar sergejreznik commented on July 17, 2024

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.

frederickfogerty avatar frederickfogerty commented on July 17, 2024

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.

sergejreznik avatar sergejreznik commented on July 17, 2024

Here's an example:
https://gist.github.com/sergejr/db8d481e576ba60ea89fdd185fd4207b

from react-imgix.

frederickfogerty avatar frederickfogerty commented on July 17, 2024

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.

sergejreznik avatar sergejreznik commented on July 17, 2024

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.

frederickfogerty avatar frederickfogerty commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.