Why JavaScript for tagDiv needs to run on the website front end ?

Posted in: Newsmag
Post count: 161

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.

Post count: 161

I just found out another thing : on mobile some scripts seem not to be working : adds from Moneytizer doen’t show up and ChatBot.collect doesn’t self open. However, these features work on desktop, but not on mobile. Any idea what’s wrong ?

Thanks :).

Post count: 35449

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!

Post count: 161

Thanks Calin, I pass to my dev and I come back to you if necessary.

Post count: 161

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).

Post count: 35449

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!

Post count: 161

Hi Calin,

I have tested this mobile plugin, and indeed it’s much faster. I am going to work on it and I will open further topics when help will be needed.

Thanks :).

Post count: 35449

Hi,

I’m glad that I was helpful, if there is anything else regarding our theme that you need to know or if you are facing some problems, just let me know!

Have a nice day!

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