• Resolved CamZL1

    (@danishhaidri)


    Hi,

    We are using LiteSpeed cache and would like to find out how to exclude all WPCode – Code Snippets from the JS? What exclusion should we add so page optimization doesn’t block the code-snippets.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mircea Sandu

    (@gripgrip)

    Hi @danishhaidri,

    If you are adding the code as code type JavaScript in WPCode you will have to use a filter to add that parameter but you can do that using a WPCode PHP Snippet really easily, here’s the code https://library.wpcode.com/snippet/7oq8nkow/

    You can click the “Use Snippet” button on that page to deploy the snippet to your site.

    If you are adding JS code as HTML snippets you can simply edit the <script> tag to include the data-no-optimize="1"?parameter like this: <scriptdata-no-optimize="1">?

    Thread Starter CamZL1

    (@danishhaidri)

    Thank you @gripgrip

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘JS Exclusion’ is closed to new replies.