Mobile menu not working or have really big delay when used header javascript

Posted in: Newspaper
Post count: 21

As mentoied in other topics with mobile menu i have the same issue.

After tap on it it just keep loading for a very long time, sometimes it loads sometimes it freeze.

Mobile menu is working fine only when no javascript is called in header .

I have tried deffering javascript but it didnt work.

Only thing that worked was delaying until interaction or after few seconds.

Also what worked was switching to mobile theme plugin BUT you are not compatibile with Cloudflare so this is not an option for us.

There is no issue with plugin conflicts this is happening also on clean website without plugins activated.

Website:https://www.zaujimavysvet.sk/

Other topics with this problem:
https://forum.tagdiv.com/topic/hamburger-menu-still-doesnt-work/
https://forum.tagdiv.com/topic/hamburger-menu-not-working-on-mobile/

  • This topic was modified 2 years by Wriper.
Post count: 27744

Hello,

I’m glad you created your own topic for this issue. Please, in the future, create your own topic even if the problem is similar, as the cause and solution can vary from one user to another.
Please try to exclude those javascript from your plugin for cache
-> wp-content/plugins/td-composer/legacy/Newspaper/js/tdMenu.js
-> wp-content/plugins/td-composer/legacy/Newspaper/js/tdAjaxSearch.js and check after because I see that you use a plugin to minify the js.

Thank you!

Post count: 21

The problem is same even after deactivating all plugins including minify.

Post count: 35449

Hi Wriper, normally the js for the mobile menu should be working without problems after the html and css from the page are loaded and I see that now it’s take 2-3 seconds to load it and sometimes it can take longer and only after that the mobile menu is displaying (after all resource are loaded). I see that you have some extra resources, some ads and google code, can you please remove theme for a test to see if the problem you have is resolved? If will be then those codes should be loading only after all the page is ready and not before.
Thank you!

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