Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Frank Goossens

    (@futtta)

    the only solution would be to have the plugins output their HTML in between noptimize-tags. In that case AO will not touch the code (be it HTML, inline CSS or inline JS).

    hope this helps,
    frank

    Hi,

    after install this & enable [Optimize JavaScript Code?] … histats not showing & not working.

    i see thr is a option called – [Exclude scripts from Autoptimize:]

    but what code i use for Exclude histats scripts from Autoptimize ?

    Histats code:

    <script type="text/javascript">document.write(unescape("%3Cscript src=%27https://s10.histats.com/js15.js%27 type=%27text/javascript%27%3E%3C/script%3E"));</script>
    <script type="text/javascript" >
    try {Histats.start(1,1565958,4,0,0,0,"");
    Histats.track_hits();} catch(err){};
    </script>
    <noscript><img src="https://sstatic1.histats.com/0.gif?1565958&101" alt="web site hit counter" border="0"></noscript>

    PLZ tell me

    Plugin Author Frank Goossens

    (@futtta)

    nigelart; replied in one of your other posts. please refrain from unnecessarily flooding this support forum.

    frank

    Thread Starter Der-Bank-Blog

    (@der-bank-blog)

    Hi Frank

    how does “noptimize-tags” look like?

    Plugin Author Frank Goossens

    (@futtta)

    it’s described in the FAQ;

    What is noptimize?

    Starting with version 1.6.6 Autoptimize excludes everything inside noptimize tags, e.g.:

    <!--noptimize--><script>alert('this will not get autoptimized');</script><!--/noptimize-->

    You can do this in your page/ post content, in widgets and in your theme files (consider creating a child theme to avoid your work being overwritten by theme updates).

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Is there a way to exclude certain plugins from HTML Optimization’ is closed to new replies.