Giter VIP home page Giter VIP logo

io-lazyload's Introduction

io-lazyload's People

Contributors

cdowdy avatar pedrosanta avatar scottlucas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

io-lazyload's Issues

Feature Request: do not load image if parent container is in display:none mode.

That happens when you have container (i.e. read more) that unveils content on click.

Right now - image would be loaded. Even though it's not visible due to being hidden within parent.

Sample code:

<div class="show_more"><a class="show-more"> Read more …</a> -> clicking makes next div visible
<div class="content-hide">
// image here
</div></div>

Placeholder image not updated with data-srcset image

Firstly, thanks for taking the time to develop and share.

I am attempting to implement io-lazyload on a WordPress site. I can see that images are only downloaded by the browser as they come into view (as expected), however the image displayed to the user does not ever change from the low-res placeholder (in this case, an SVG).

Test URL available @ https://redacted

Cheers

NPM package

Hi

Can you please publish your code as npm package?

Thanks

SyntaxError: expected expression, got ':'

Hi, when I use iolazy.js fron src/ folder, I'm getting this javascript error:

image

Screen is from latest Firefox, but the same issue I can see in Chrome.

Using dist/js/iolazy.min.js everything is OK.

I prefer to use non-minified version - to create my own distrubution pack.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.