Hello there,
My dev is trying to fix some optimizations on my wbsite http://www.emprunter-malin.com. To achieve this, he’s asking me :
“Ask about the JavaScript for tagDiv, why it needs to run on the website front end, and how to reduce the impact”.
Thanks for your help.
Hi,
The JavaScript/ajax are use for the animation (lazyload), buttons, pagination… here is a short article about what you can do using JavaScript -> https://careerkarma.com/blog/javascript-front-end-or-back-end/
You can reduce it by removing the elements enumerate above -> https://i.imgur.com/8EfBc7O.png use blocks with out ajax filter.
Please note that the mobile version of ChatBot.collect will look different from the desktop one -> https://i.imgur.com/mG9z5Lc.png if this should open automatic like on desktop will be like this https://i.imgur.com/t7MQ4Tf.png and you’ll no longer see the content from the website, therefore the chat on mobile need to be open manually.
For more information you can contact the creators/developers of ChatBot.collect
Thank you for your understanding!
Sorry Calin, but you didn’t answer he first question : why JS needs to run on the website front end ?
Then FYI lazy Load image was already turned off in my settings.
In fact, the trouble is that the theme loads very slowly on mobile, despite all our settings (Autoptimizer, WP super cache).
Hi,
All website are using JavaScript to information and for dynamic content, to apply css classes and so on.
Where should run the js if not on frontend? indeed this is use in backend too, but most of it is use for frontend by our designers.
For a better performance on the mobile version you can use the mobile theme plugin, please check our documentation for this plugin -> https://tagdiv.com/mobile-theme-get-mobile-ready-with-newsmag-theme/ this should increase the mobile speed.
Also note that the speed of your website depends on how well your website is optimized, if you follow the steps which are presented in this tutorial here -> https://tagdiv.com/how-to-increase-page-loading-speed/ you’ll be able to increase the speed of your website.
Also you can check this similar topic for more solutions: -> https://forum.tagdiv.com/topic/optimize-script-to-improve-site-speed/
Thank you for your understanding!