question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

LazyLoad HTML not valid & not working

See original GitHub issue

I 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:open
  • Created 9 years ago
  • Comments:6

github_iconTop GitHub Comments

4reactions
simeydotmecommented, Feb 23, 2015

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 the src= with the data-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.

0reactions
redworxcommented, Feb 23, 2015

and the overall main problem: lazyload is NOT working here 😃 without my hack

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found