Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

define width and height of image to avoid loading unnecessary images #258

Open
studio404pl opened this issue Aug 22, 2016 · 0 comments
Open

Comments

@studio404pl
Copy link

studio404pl commented Aug 22, 2016

Hi,

i was thinking is there any to define somehow to your script to load 'optionally' images in high resolution?

For example i am loading some image 600px x 400px and in desktop version i need to load retina version of that image. But for example when someone is on mobile version and viewport is around 300px wide, my image has to be around 300px x 200px so technically it's already upscaled to @2x with default image (600x400), delivering in that case image with resolution 1200px x 800px makes it double double.

I am curious if there is any way to check that kind of conditions before loading images? Speed insight is really mad about delivering large images for mobile version.

Really great plugin by the way, i'd really love new version! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant