{"id":5131785,"date":"2014-07-25T21:32:47","date_gmt":"2014-07-25T21:32:47","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/javascript-error-53\/"},"modified":"2016-08-21T23:37:47","modified_gmt":"2016-08-21T23:37:47","slug":"javascript-error-53","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/javascript-error-53\/","title":{"rendered":"Javascript error"},"content":{"rendered":"<p>Hi, <\/p>\n<p>Thanks for this plugin, really works in reducing page load time.<\/p>\n<p>But I&#8217;m receiving an JS error message when the FOUC removal option is activated:<\/p>\n<pre><code>TypeError: $ is not a function<\/code><\/pre>\n<p>If the affected Javascript inline code is removed from the core.php file (line 94), it doesn&#8217;t seem to affect anything.<\/p>\n<pre><code>&lt;script type=&quot;text\/javascript&quot; &gt;\n  $(document).ready(function() {\n    loadeddocument();\n  });\n  &lt;\/script&gt;<\/code><\/pre>\n<p>Is this snippet necessary for something else? I just would like to check.<\/p>\n<p>https:\/\/wordpress.org\/plugins\/speed-booster-pack\/<\/p>\n","protected":false},"template":"","class_list":["post-5131785","topic","type-topic","status-closed","hentry","topic-tag-javascript","topic-tag-snippet"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5131785","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\/5131785\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5131785"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}