thinker3197 / progressively

A JavaScript library to load images progressively 🌇
https://thinker3197.github.io/progressively
MIT License
698 stars 68 forks source link

progressively.render() not working #34

Open gitbrutus opened 4 years ago

gitbrutus commented 4 years ago

Hello, I'm trying to use the render() method to have images load before I scroll them into view. I'm not sure if that's a bug or if I'm just using it wrong (which is more likely).

Unfortunately there is no explanation in the documentation of how to use the render method and where to place it. I've simply put it below the init method, which is probably not the right way to do it? Or do I have to add anything to the img classes as well? What am I missing?

progressively.init({ ... }); $(document).ready(function() { progressively.render() });