Exclude inline JavaScript containing HTML from HTML optimization
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Exclude inline JavaScript containing HTML from HTML optimization’ is closed to new replies.
(@codifex)
7 years, 8 months ago
I am using Autoptimize to optimize HTML, CSS, and JavaScript on a site.
On one page a Google AdWords conversion tracking code is contained in the HTML output:
Unfortunately HTML optimization seems to destroy
/* <![CDATA[ */
and/* ]]> */
. These code segments are minified to/* */
, making Google complain.Is there any way to keep HTML optimization enabled and preserve these JavaScript comments?
By the way, thank you very much for this great plugin.