• Resolved jenseo

    (@jenseo)


    Hello,
    I’m keeping my site as optimized as possible (using LiteSpeed Cache for most parts) and noticed that after adding this plugin, I get some additional JS files that isn’t included in the JS bundles from LiteSpeed.

    It seems like your JS is injected after page load if I saw correctly after a quick look in the source code, so I guess that’s why LiteSpeed misses it. So first of all, would it be possible to add the scripts the normal WordPress way instead?

    And on that subject, I have not activated the “Save to Pinterest” button and wanted to know if there are any files related to this that is included although that option is disabled? If so, do you have a hook I can use to dequeue it?

    Thanks a lot, keep up the good work!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Christian

    (@christian1983)

    Hey @jenseo ,

    Hope you are doing well!

    The plugin adds JS files related to “Save to Pinterest” button only when that option is enabled and also adds Tracking related scripts when that option (“Track conversions”) is enabled.

    These are required for tracking to work. If you don’t need conversion tracking you can deactivate it and the scripts won’t be enqueued.

    The plugin loads its local assets the “WordPress way” using wp_enqueue_script() but there are also scripts needed that are loaded from Pinterest servers, perhaps you are seeing those.

    Let me know if that helps.

    Best,
    Christian

    Plugin Support Christian

    (@christian1983)

    Hey there,

    Since we haven’t heard back from the OP in a while, I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Best,
    Christian

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘What JS files are safe to dequeue’ is closed to new replies.