Weird bug with Autoptimize script insertion
-
When “Force JavaScript in <head>?” is checked Autoptimize inserts its script right into my own:
<script>window.Flu<script type="text/javascript" src="http://yougonnadance.ru/wp-content/cache/autoptimize/js/autoptimize_9bf3fb54c5b7d7e9e4162657e05c0932.js"></script></head>new function() { this.onLoad = []; this.do = function(callback) { this.onLoad.push(callback); } };</script>When I remove my script from the head, Autoptimize inserts it’s code into another tag.
When “Force JavaScript in <head>?” is NOT checked, there are no supposed Autoptimize script in the footer at all.
Works normal with my dev hosting and messing up the page when running at production. I’ve tried different php versions, completely copying wordpress and database from dev to production but nothing worked.
Could it be some php/webserver configuration mistake or what?
The topic ‘Weird bug with Autoptimize script insertion’ is closed to new replies.