{"id":10342718,"date":"2018-05-30T20:21:00","date_gmt":"2018-05-30T20:21:00","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/help-with-java-script\/"},"modified":"2018-05-30T20:21:00","modified_gmt":"2018-05-30T20:21:00","slug":"help-with-java-script","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/help-with-java-script\/","title":{"rendered":"help with Java script"},"content":{"rendered":"<p>I know that cookie consent breaks with some javascript optimizers like autoptimize, fast velocity minify, wpsupercache and async javascript.  Furthermore, it messes up the mobile menu. But I managed to get cookie consent to work with autoptimize and minify by excluding some scripts, as you suggested to a different poster.<\/p>\n<p> currently I have excluded:<br \/>\n\/wp-includes\/js\/jquery\/jquery.js,<br \/>\n\/cookielawinfo.js,<br \/>\n\/wp-content\/plugin\/cookie-control\/js\/<\/p>\n<p>I&#8217;d like to add wpsupercache but it seems to break the cookie consent bar.<br \/>\nI&#8217;m kind of in the dark here.  Any suggestions?<\/p>\n<p>Since adding the bar, my site has become really slow on pagespeed. Currently 61 and 77 for mobile and desktop respectively.<\/p>\n","protected":false},"template":"","class_list":["post-10342718","topic","type-topic","status-publish","hentry","topic-tag-javascript","topic-tag-pagespeed","topic-tag-wpsupercache"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10342718","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10342718\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10342718"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}