Title: Menu Jumping
Last modified: January 29, 2019

---

# Menu Jumping

 *  Resolved [Tamhas](https://wordpress.org/support/users/tamhas/)
 * (@tamhas)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/menu-jumping/)
 * Hi! Your plugin makes my site awse fast, thanks! However I do get a little jumping
   menu effect, which if you click through the pages on main menu, you will see 
   happens on all except Home page. How could I stop this happening please?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmenu-jumping%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/menu-jumping/#post-11142801)
 * Hmmm, I see you have some CSS optimization exclusion (which I presume you need),
   but does the jumping also happen when not excluding those?
 *  Thread Starter [Tamhas](https://wordpress.org/support/users/tamhas/)
 * (@tamhas)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/menu-jumping/#post-11142816)
 * AH, do you mean the “Defer jQuery and other non-aggregated JS-files?” in advanced
   settings? Yes I ticked that… it that what’s doing it?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/menu-jumping/#post-11142945)
 * No, I mean under AO Main -> CSS -> exclusion you probably added some CSS to be
   excluded from optimization?
 * but indeed, do you have the jumping when “Defer jQuery and other non-aggregated
   JS-files” is not ticket?
 * and additionally;
    * you’re using Clearfy, can you try disabling that? * q2w3_sidebar
   is generating a JS error, does disabling that change anything? * I also see you’re
   using AO-beta’s lazyload, does the jump also happen when that is disabled (I 
   think it’s unrelated, but one never knows)?
 * but most importantly; you have some JS that is changing the DOM (e.g. inline 
   JS using themes/shoptimizer/assets/js/sticky-kit.js), that might cause such issues(
   as criticalcss.com cannot extract styling of elements added by JS). so you could
   try excluding that JS from being optimized to see if that makes the jump disappear
   or at least be less obvious.
 * frank
 *  Thread Starter [Tamhas](https://wordpress.org/support/users/tamhas/)
 * (@tamhas)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/menu-jumping/#post-11142977)
 * Hi Frank,
 * I unticked the “Defer jQuery and other non-aggregated JS-files” and the problem
   resolved.
 * For Clearfy I am only doing things like mostly disabling heartbeat, resource 
   saving things, no front-end optimisations there.
 * Q2W3 I am not using right now so I switched it off, thanks. For the /themes/shoptimizer/
   assets/js/sticky-kit.js I could try disabling it, you mean to add it to “Exclude
   scripts from Autoptimize” under the JS, CSS & HTML tab in Autoptimizer settings?
   Or shall we best now say since it’s fixed, then it’s not broke, and leave it 
   there?
 * Thanks
    Tamhas
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/menu-jumping/#post-11143006)
 * > I unticked the “Defer jQuery and other non-aggregated JS-files” and the problem
   > resolved.
 * Great, this confirms the issue is with some JS that is being deferred.
 * > Or shall we best now say since it’s fixed, then it’s not broke, and leave it
   > there?
 * up to you really and how much time you want to invest in this; now that “Defer
   jQuery and other non-aggregated JS-files” is disabled you have some render-blocking
   JS so if you have time and energy to pursue this then by all means 🙂
 * > For the /themes/shoptimizer/assets/js/sticky-kit.js I could try disabling it,
   > you mean to add it to “Exclude scripts from Autoptimize” under the JS, CSS &
   > HTML tab in Autoptimizer settings?
 * you could give that a try yes; but not only sticky-kit.js but also the inline
   JS that uses is 🙂
 *  Thread Starter [Tamhas](https://wordpress.org/support/users/tamhas/)
 * (@tamhas)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/menu-jumping/#post-11143023)
 * Yes I think I will leave it there for now.
 * I have achieved more speed with your above the fold work, but also realise that
   I don’t quite know enough about JS yes to be getting into deferring jQuery and
   other non-aggregated JS-files. I will take my time and do some more homework.
 * For now, all looking good! Thanks Frank
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/menu-jumping/#post-11143056)
 * you’re welcome Tamhas, feel free to [leave a review of the plugin and support here](https://wordpress.org/support/plugin/autoptimize-criticalcss/reviews/#new-post)
   🙂

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Menu Jumping’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/autoptimize-criticalcss.svg)
 * [Autoptimize criticalcss.com power-up](https://wordpress.org/plugins/autoptimize-criticalcss/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize-criticalcss/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize-criticalcss/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize-criticalcss/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize-criticalcss/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize-criticalcss/reviews/)

## Tags

 * [jumping](https://wordpress.org/support/topic-tag/jumping/)

 * 7 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/menu-jumping/#post-11143056)
 * Status: resolved