Site logo

[Resolved] Remove sticky.min.js Mobile theme

Home Forums Support [Resolved] Remove sticky.min.js Mobile theme

Home Forums Support Remove sticky.min.js Mobile theme

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1821362
    HT

    /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

    #1821366
    HT

    added the website reference

    #1821427
    David
    Staff
    Customer Support

    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.

    #1821434
    HT

    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 😀

    #1821477
    David
    Staff
    Customer Support

    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.

    #1822029
    HT

    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?

    #1822034
    David
    Staff
    Customer Support

    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.

    #1824053
    HT

    Thank you. Make sense.

    #1824134
    David
    Staff
    Customer Support

    Glad to be of help

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