How to implement Lazy Load feature of Blocs to the webpages by my hand?


#1

Hi! A have several websites created with Blocs 2.3. Now we have Blocs 2.4 Beta where lazy load feature was implemented. How can I implement lazy load feature to a website that was created and exported from Blocs app by my hand without using Blocs.

I don’t want to use Blocs for my projects because I’ve made so many changes to my projects after exporting from Blocs app.

Any ideas, guys?


#2

Do the following.

• Add the Lazy load JS script to the webpages in the header.
• Go to every img, iframe, video in the pages and give them the class lazyload.
• Go to every img, iframe, video in the pages and change the src attribute to data-src.

On a side note, you should share your mods to your projects with me, there may be some things I can get blocs todo for you, my goal is to make the projects files as close to production ready as possible.


#3

Thank you, Norm! :+1: