Support » Plugin: Autoptimize » exclude 1 inline script

  • Resolved kubiq


    Hi, thank you for great plugin 😉

    I want to use “Also aggregate inline JS” but I need to make exception for 1 single script
    Is there a way how to do it? some data parameter like:
    <script data-exclude="true">var something = 123</script>
    or any other way how to do it?

    Thank you 😉

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Optimizing Matters


    sorry @kubiq , had not seen your question yet. you can exclude by adding e.g. data-exclude or something to AO’s comma-separated JS optimization exclusion list.

    hope this helps,

    wow, it really works,
    I’ve tried it before and it didn’t…
    I have no idea what was wrong…
    anyway, thank you for response and sorry for stupid question 😀

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.