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.

I was wondering if it’s possible to use Locomotive Scroll with an external lazy load plugin or even a native solution like loading='lazy'. Thanks!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
abxethcommented, Mar 2, 2020

Hey, if you want to load images while scrolling, you can use data-scroll-call with something like this. If you want to load all the images after the rest of the page is loaded, we use modularLoad with data-load-src. You can see a demo page with both ways in our boilerplate.

1reaction
podrivocommented, Mar 8, 2020

I couldn’t make it work either, with the provided examples. Tried using loading='lazy', which works, but breaks everything else.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lazy loading images - web.dev
Lazy loading images ... Images can appear on a webpage due to being inline in the HTML as <img> elements or as CSS...
Read more >
Lazy loading - Web performance | MDN
Lazy loading is a strategy to identify resources as non-blocking (non-critical) and load these only when needed. It's a way to shorten the ......
Read more >
Lazy Loading Images – The Complete Guide - ImageKit.io
Lazy Loading Images is a set of techniques in web and application development that defer the loading of images on a page to...
Read more >
Five Ways to Lazy Load Images for Better Website Performance
Lazy loading images means loading images on websites asynchronously — that is, after the above-the-fold content is fully loaded, ...
Read more >
How to Lazy Load Images in Javascript | BrowserStack
Lazy Loading images is a technique to load images on a web page only when required. This way can improve the page's loading...
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