In some sites in their home pages, as u scroll down, modules appear one by one.
I think this enhances page load time. How can i do this in Joomla? Is it doable? Is there a plugin or something for this matter?
-
I think what you're seeing doesn't actually "load" the module when in the viewport. It's already loaded but is hidden, then when it's in the viewport, it becomes visible.– LodderAug 23, 2016 at 15:06
-
What you're thinking of may increase server loading time, but will absolutely destroy your server resources as it will require a load of Ajax requests.– LodderAug 23, 2016 at 15:08
3 Answers
"Lazy loading" may be what you are describing.
There is a free Joomla extension, "Lazy Load for Joomla!" which helps with this but is more for images than modules.
-
1yeah, exactly. jch plugin has this function for images. and i thought it would be good to do the same thing about modules.– kiasatyAug 24, 2016 at 5:56
I would be very careful using the lazyload method. I have seen many instances where the content (images) at top do not load until the page scrolls even 1 pixel.
You might consider using scrollfire/magic.. this allows you to load certain content based on where the user is on their scrolling position.
http://materializecss.com/scrollfire.html http://scrollmagic.io/
You can use sp-pagebuilder. The functionality is there by default. In sp-pagebuilder, goto row settings chose the animation what you want, increase the delay time. U are done.