Title: CPU performance issue
Last modified: August 21, 2016

---

# CPU performance issue

 *  Resolved [kimkimcooking](https://wordpress.org/support/users/kimkimcooking/)
 * (@kimkimcooking)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/cpu-performance-issue/)
 * Hi, I like the plugin a lot but I’m having performance issues.
 * If I leave my blog open in a tab for a while it’s getting really slow to scroll
   down (chrome CPU usage is maxed out) and a javascript profile capture in the 
   Developer tools shows that **q2w3_sidebar** takes all the cpu (sorting by Total
   column).
 * I can reproduce this all the time, for example at this address: [http://www.kimkimcooking.com/2013/10/23/quinoa-stuffed-pumpkin/](http://www.kimkimcooking.com/2013/10/23/quinoa-stuffed-pumpkin/).
 * Here are my options:
 * Margin Top: 30 px
    Margin Bottom: 0 px Refresh interval: 500 milliseconds / Set
   0 to disable. Screen Max Width: 800 px / Plugin will be disabled when browser
   window width equals or less then specified value
 * Compatibility
    Auto fix widget id: [CHECKED]
 * Enable plugin for logged in users only: Enable this option for debug purposes(
   frontend problems and etc.)
 * Inherit widget width from the parent container: Enable this option for themes
   with responsive sidebar [NOT CHECKED]
 * Use jQuery(window).load() hook: Enable this option only if you have problems 
   with other scroll oriented javascript code [NOT CHECKED]
 * widget_display_callback hook priority: 30
 * **It gets worst over time.** At first there is no problem, and as I run javascript
   profile captures every 5 minutes, I see the CPU usage of Idle decreasing and 
   of q2w3_sidebar growing.
 * Happens with Chrome Version 31.0.1650.26 on a 1920×1080 monitor, Windows 7 64bit.
 * I didn’t want to leave a review because of this, so I hope we can sort it out.
 * Thank you!
 * [http://wordpress.org/plugins/q2w3-fixed-widget/](http://wordpress.org/plugins/q2w3-fixed-widget/)

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

 *  Plugin Contributor [Max Bond](https://wordpress.org/support/users/max-bond/)
 * (@max-bond)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/cpu-performance-issue/#post-4253556)
 * Hi!
 * It’s true – sometimes javascript could cause high cpu load!
    Refresh Interval–
   this is an option responsible for cpu load. You have Refresh Interval = 500 –
   it’s a very small value! For myself I use values not less then 1500!
 * **If you experience performance issues first step is to increase Refresh Interval(
   use values between 1000-3000).**
 * Also you need to ask yourself – do I need Refresh Interval enabled?
    This option
   is must use only if you have widgets with dynamic height (for example tabbed 
   widget), or widgets with javascript (social plugins), or site content may change
   its height dynamicaly (infinite scroll, image lazy load, facebook comments). 
   In other case you don’t need Refresh Interval enabled! As I can see here: [http://www.kimkimcooking.com/2013/10/23/quinoa-stuffed-pumpkin/](http://www.kimkimcooking.com/2013/10/23/quinoa-stuffed-pumpkin/)
   you don’t need Refresh Interval enabled!
 * **Try to completely disable Refresh Interval (set its value to 0)!**
 *  Plugin Contributor [Max Bond](https://wordpress.org/support/users/max-bond/)
 * (@max-bond)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/cpu-performance-issue/#post-4253557)
 * One more thing.
    **Decreasing number of fixed widgets may also reduce cpu load!**
 *  Thread Starter [kimkimcooking](https://wordpress.org/support/users/kimkimcooking/)
 * (@kimkimcooking)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/cpu-performance-issue/#post-4253566)
 * I think Refresh interval was enabled by default (with a higher interval value).
   I thought it controlled the refresh rate to detect scrolling up and down to adjust
   the position of the fixed widget.
 * Setting it to 0 fixes the problem.
 * Thanks!

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

The topic ‘CPU performance issue’ is closed to new replies.

 * ![](https://ps.w.org/q2w3-fixed-widget/assets/icon-256x256.png?rev=2384479)
 * [Fixed Widget and Sticky Elements for WordPress](https://wordpress.org/plugins/q2w3-fixed-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/q2w3-fixed-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/q2w3-fixed-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/q2w3-fixed-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/q2w3-fixed-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/q2w3-fixed-widget/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [kimkimcooking](https://wordpress.org/support/users/kimkimcooking/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/cpu-performance-issue/#post-4253566)
 * Status: resolved