• Resolved jvmap

    (@jvmap)


    Hello,

    I’m having a problem with page-scroll-to-id only when previewing changes to a post. Otherwise it works fine.
    But when previewing changes to a post, my browser (Chrome) gets extremely sluggish when this plugin is activated. Chrome CPU usage is around 20%. When javascript is paused at any time, page-scroll-to-id is in the call stack (the _setup function).
    What’s going on here?

    Here you can get a .zip of an example page with the problem. It can be reproduced without an internet connection.

    Thanks for any help you can provide, I’m aware this is a free plugin.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author malihu

    (@malihu)

    Hello,

    I checked your HTML and it seems that the plugin is trying to highlight about 70-80 different elements. This is because there are many links with hash (#) when previewing the page (in the debug toolbar too).

    I don’t know if you need the highlight feature of the plugin at all(?), since you don’t have any sticky elements in your page. You need to go to plugin settings and set the “Highlight selector(s)” option value to the specific selector you want, or just add:

    .nothing

    to disable (since I can’t see any sticky menu with such links).

    Hope this helps

    Thread Starter jvmap

    (@jvmap)

    Thanks! No, I did not need highlighting. Setting the highlight selectors option value to .nothing solved the problem.

    Plugin Author malihu

    (@malihu)

    Great ??

    I’m marking this as resolved. If you need more help let me know.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Very high CPU usage on post preview’ is closed to new replies.