Search function is missing with Autoptimize
-
I use Autoptimize, if I turn off javascript optimization the search bar reappears.
When I have JS optimization on, the code appears in the source on several lines, like so.
<script type=”text/javascript”>jQuery(document).ready(function($){
$(‘#tablepress-2’).dataTable({“stripeClasses”:[‘even’,’odd’],”ordering”:false,”paging”:false});
});</script> <script type=”text/javascript”>(function() {
var request, b = document.body, c = ‘className’, cs = ‘customize-support’, rcs = new RegExp(‘(^|\\s+)(no-)?’+cs+'(\\s+|$)’);request = true;
b[c] = b[c].replace( rcs, ‘ ‘ );
b[c] += ( window.postMessage && request ? ‘ ‘ : ‘ no-‘ ) + cs;
}());</script>I moved my site to a new host last week, before this I had no conflicts between Autoptimize and TablePress.
- The topic ‘Search function is missing with Autoptimize’ is closed to new replies.