Archived topic
Remove sticky.min.js Mobile theme
8 replies · Started by HT on June 14, 2021
/wp-content/plugins/gp-premium/menu-plus/functions/js/sticky.min.js I think this is used only for mobile ... is there any option to disable this?
I have already turned off the sticky menu customize option?
Does this make sense?
Are there any other options to eliminate all the fancy things associated with the theme at least for mobile versions? Any guidance would be really appreciated
added the website reference
Hi there,
the Mobile Header in Customizer > Layout > Header has its own Sticky option - but it looks like that has been disabled and no script loading for the sticky menu on your site.
Thank you, David.
Is there any other javascript item I can disable? I don't mind having a less fancy UI to have better performance....
I know it's difficult for you from Theme support but your experience or any tips can save my time reverse-engineering the JavaScript files used by theme :-D
The bare minimum JS the theme has to load is for mobile hamburger.
The other features that add JS:
1. Off Canvas Panel.
2. Back to Top
3. Sticky Nav / mobile header
4. Blog Masonry
Disabling all those options for both desktop and mobile will leave just the menu js for the mobile device.
1. Off Canvas Panel.
2. Back to Top
3. Sticky Nav / mobile header
4. Blog Masonry
1. Off-Canvas Panel - If I use this only for Desktop then it won't load JS for mobile devices. Is that a correct understanding?
1. No - enabling the Off Canvas Panel whether it be Desktop Only or Mobile only always enqueues the JS no matter what device you're on. It just won't fire the script.
Thank you. Make sense.
Glad to be of help