Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Problem: Library loads very slowly on iPad using Safari
#8
Theres no user-agent checking but there is a test to determine whether the Browser supports native lazy loading for images. The default is GLOBAL.nativeLazyLoad = false which results in a Javascript routine doing the image lazyload instead of the internal Browser code. Maybe the  JS routine is slower???

Code:
   // Check for native lazy load support in Browser
   // @bitkeeper contribution: https://github.com/moode-player/moode/pull/131
   if ('loading' in HTMLImageElement.prototype) {
       GLOBAL.nativeLazyLoad = true;
   }

You could try editing /var/www/js/main.min.js, search for HTMLImageElement and then add a console.log statement after the closing brace of the if block that will print the value of GLOBAL.nativeLazyLoad.

console.log(GLOBAL.nativeLazyLoad);
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
RE: Library loads very slowly on iPad using Safari - by Tim Curtis - 01-30-2022, 11:17 PM

Forum Jump: