LazyLoading

Posted in: Newspaper
Post count: 89

I am using LazyLoad feature for images but the problem is “The animation effect is canceled if all the required images are not loaded in 2 seconds. I want to change this rule. I don’t want to cancel the animation effect at all.

Please let me know how do I do that.

Post count: 35449

Hi,

Unfortunately there is no option in our theme to change the loading time for lazyload, this can be achieve only if you make changes in theme files.

Thank you for your understanding!

Post count: 89

Okay and how do I make changes in the theme files?

Post count: 35449

Hi,

If you want to change the time for lazy load you need to go in wp-content/plugins/td-composer/legacy/Newspaper/js/tagdiv_theme.js make the changes and Minify the JavaScript https://javascript-minifier.com/ and replace the code from wp-content/plugins/td-composer/legacy/Newspaper/js/tagdiv_theme.min.js with the new mimify JavaScript code ( the Newspaper theme use the tagdiv_theme.min.js file)
-> https://www.screencast.com/t/EOr5kVVigeNq
Also notice that after each update these changes will be lost and you’ll need to make theme again.

Thank you!

Post count: 89

It’s not the load time that I want to change it’s the rule ““The animation effect is canceled if all the required images are not loaded in 2 seconds.” that I want to change. I don’t want the animation effect to be canceled at all.

Post count: 35449

Hi,

That option is in tagdiv_theme.js as I said above, you need to identify the code for max time for lazy load -> https://www.screencast.com/t/Zu9jnuZPT this is custom work, you need to do it yourself through the code and if you are not aware of the steps which are needed to take, in this case, please consider hiring a freelancer/developer to help you because we cannot provide custom work at the moment, sorry!

Thank you!

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.