Skip to content
New issue

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

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

Already on GitHub? # to your account

multiserve image loads only default #82

Closed
dgorges opened this issue Apr 20, 2016 · 5 comments
Closed

multiserve image loads only default #82

dgorges opened this issue Apr 20, 2016 · 5 comments

Comments

@dgorges
Copy link

dgorges commented Apr 20, 2016

Image:
<img class="bJS_lazy" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="default.jpg" data-src-small="default-small.jpg" alt="Image" />
js
var bLazy = new Blazy({ breakpoints: [{ width: 900 , src: 'data-src-small' }] , selector: s.selector , offset: 350 , successClass: 'b_loaded' , validateDelay: 10 });
bLazy loads the data-src image (default.jpg) not the data-src-small. I tested it on different screen resolutions. From 300px to 2000px.

@dgorges dgorges changed the title multiserve image load only default multiserve image loads only default Apr 20, 2016
@in2lag
Copy link

in2lag commented Apr 28, 2016

Can somebody confirm this? Quite an issue

@dinbror
Copy link
Owner

dinbror commented Apr 28, 2016

@in2lag + @dgorges:

The breakpoints are based on screensize not browsersize:
#77

@in2lag
Copy link

in2lag commented Apr 28, 2016

Thanks, i figured it out today, PR will be hopefully ready tomorrow ;)

@dinbror
Copy link
Owner

dinbror commented Apr 28, 2016

I'll add support for srcset and the picture element very soon

@dinbror
Copy link
Owner

dinbror commented Apr 30, 2016

Marked "breakpoints" as obsolete in version 1.6.0. Use srcset and/or the picture element instead

@dinbror dinbror closed this as completed Apr 30, 2016
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants