Mobile menù not working

Posted in: Newspaper
Post count: 121

Hi,
I noticed that our mobile menu doesn’t work when pressed. Sometimes it opens, other times it blocks scrolling, and other times it works. If I clear the cache, it works for a while, then it freezes again. I tried removing and adding it again, but there aren’t many options to change.
You can check http://www.moviemag.it

Thanks

  • This topic was modified 5 months by Alex.
Post count: 35449

Hi,
Please exclude those js file from the cache settings:
tdbMenu.js
tdMenu.js
tdAjaxSearch.js
tdbSearch.js
I hope this will help you!

Post count: 6

Entire website has broken in the design and layout. Please help : qatarhappenings.com

Post count: 35449
Post count: 121

Thanks @calin

Post count: 121

Hi @Calin
It worked for an hour, then the problem returned.
What can I do?

Alex

Post count: 35449

Hi Alex,
Please add 2 more files to js to be excluded:
jquery.min.js
jquery-migrate.min.js
If the situation persists, please try to disable the option for removing unused css and see if the problem persists.
Let me know the results!

Post count: 121

Hi,
but do I have to add the path to deferred mode? I’ve been using Wp-Rocket for years and have deferred mode enabled. Below, I can exclude the JS from this mode. And then: do I have to add the path? For example: /wp-content/plugins/td-composer/legacy/Newspaper/js/tdMenu.js?
Thanks

Alex

Post count: 121

So, I added the other two js. When I clear the cache for a minute, everything works fine, but then everything crashes and the menu is no longer clickable. I’ve never had this problem with either wp-rocket or Newspaper. What’s going on? This problem is causing significant damage to the magazine because the categories aren’t being seen by mobile visitors.

Post count: 121

Hi @calin,
I’ll update you: I disabled Remove Unused CSS in Wp-Rocket and applied Loads CSS asynchronously (there are only these two options for CSS optimization). Leaving Loads CSS asynchronously enabled makes the menu work properly. My question is: is there a disadvantage to using it and avoiding Remove Used CSS? I mean, in my Google PageSpeed ​​Insights score.
One last thing: I’m having some minor issues with my site and I don’t want to open up too many topics. Can I contact you via TagDiv’s email address so you can check a few things?
Thanks in advance for your reply.

Alex

Post count: 35449

Hi Alex,
I see so in the end the problem is related to the Rocket option that remoe teh unused CSS. Without this option is possible that the pagespeed to get lower with a few points
You can contact us via email at contact@tagdiv.com and we’ll do our best to help you.
What I can recommend is to use those exclusions for Remove Unused CSS:
(.*)#td-mobile-nav(.*)
(.*).td-mobile-container(.*)
.td-mobile-close
.td-mobile-content(.*)
(.*).td-menu-background(.*)
(.*).td-search-background(.*)
(.*).td-search-wrap-mob(.*)
.td-search-close
.td-ajax-search-flex(.*)
(.*).td_module_flex_1(.*)
Another thing that can be used with that option is the plugin WP Rocket | Exclude Inline Styles from Remove Unused CSS plugin.
I hope this will help you!

Viewing 11 posts - 1 through 11 (of 11 total)
You must be logged in to reply to this topic.