Developer forum

Forum » Rapido » Rapido 2 b-lazy issue

Rapido 2 b-lazy issue

Jens Mouritzen
Jens Mouritzen
Reply

I got this strange issue with images on a carousel. One image on the carousel, only loads when the page is scrolled or when the window is moved. What could this be?

http://fanoevesterhavsbadsgolfklub.dw9.dynamicweb-cms.com/forside

https://www.screencast.com/t/ocdB85bHX


Replies

 
Karsten Thuen Dynamicweb Employee
Karsten Thuen
Reply

Hi Jens

That is a very stupid bug. It is fixed from Rapido 2.1.1 - But there is also another, very easy way to fix it:

  1. If it is not already enabled, enable custom Javascript in the bottom of the Website settings
  2. Open templates/designs/rapido/js/source/custom.js for edit. If you do not have access to bundle + minify on the solution for the javascripts, open custom.min.js for edit instead.
  3. Then paste this code, and save:

document.addEventListener("shiftSlide", function () {
    if (bLazy != null) {
         bLazy.revalidate();
     }
});

The smart thing here, is that we are using the javascript extensibility points to fix a small bug. And by doing it this way, you have not customized the javascript. It will both be much easier to find your customizations and it will be safer to upgrade.


Best regards
Karsten Thuen

 

You must be logged in to post in the forum