LazyLoad HTML not valid & not working
See original GitHub issueI have a problem with LazyLoad:
If i leave the IMG tag without a SRC set, it will be an invalid HTML code. If i put a blank.png or ‘#’ in the src the LazyLoad is not working.
Can you fix that issue?
I need the slider to load each image ONLY when i click on the NEXT button, but its not working - not in ‘ondemand’ and not in ‘progressive’ mode…
PS: I wrote a little fix now in line #1636 to manually take the data-src attribute (with real src) and put it in the src:
_.$slides.slice(index, index + _.options.slidesToShow).attr("src", _.$slides.slice(index, index + _.options.slidesToShow).data("src"));
Issue Analytics
- State:
- Created 9 years ago
- Comments:6
Top Results From Across the Web
Native lazy-loading (loading=lazy) not working even with ...
I use Chrome by default and it was not working. When I tested it in Firefox, it did work. That made me think...
Read more >Lazy loading & HTML Validation
Hi,. When i try to validate html I get this error. Should I Ignore. Error: Element style not allowed as child of element...
Read more >Lazy-loading feature modules
Because the new module is meant to be lazy-loaded, the command does not add a reference to it in the application's root module...
Read more >Lazy loading - Web performance | MDN
One of the methods we can use to tackle this problem is to shorten the Critical Rendering Path length by lazy loading resources...
Read more >Relationship Loading Techniques
Lazy loading refers to objects are returned from a query without the related ... Above, ORDER BY addresses.email_address is not valid since ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @redworx 😃 , putting a
blank.png
is equally invalid when it comes to the crunch, so what’s the problem? 😕 - if you think the plugin is not correctly replacing thesrc=
with thedata-src=
then please provide a JSFiddle to demonstrate and we’ll start looking at a fix 😅https://github.com/kenwheeler/slick/blob/master/CONTRIBUTING.markdown there’s even a pre-made fiddle you can FORK for ease.
Simon.
and the overall main problem: lazyload is NOT working here 😃 without my hack