{"id":1715,"date":"2022-08-30T15:18:50","date_gmt":"2022-08-30T15:18:50","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/29\/jquery-holdreadyfalse-errors-when-invoked-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:18:50","modified_gmt":"2022-08-30T15:18:50","slug":"jquery-holdreadyfalse-errors-when-invoked-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/jquery-holdreadyfalse-errors-when-invoked-collection-of-common-programming-errors\/","title":{"rendered":"jQuery.holdReady(false) &#8211; errors when invoked-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m using yepnope.js to conditionally load css and js files into my page.<\/p>\n<p>I&#8217;ve merged my JS files into a single file. The structure is as follows:<\/p>\n<pre><code>\/* file *\/\n\n\/\/ - copy pasted Jquery 1.7rc2.min here -\n\n(function () { console.log(\"enabled hold\"); jQuery.holdReady(true); })();\n\n\/\/ - copy pasted yepnope.min here -\n\nyepnope([\n{\n    test: condition,\n    load: [css files]\n},{\n     load:[js files],\n     callback: function () {...},\n     complete: function () { jQuery.holdReady(false); console.log(\"hold released\");}\n}]);\n\n\/* end of file *\/\n<\/code><\/pre>\n<p>and this is the error i get on Google chrome console (version 17.x.x)<\/p>\n<pre><code>Uncaught TypeError: Object function ( selector, context ) {\n        \/\/ The jQuery object is actually just the init constructor 'enhanced'\n        return new jQuery.fn.init( selector, context );\n    } has no method 'holdReady'\n(anonymous function)animatein.js:2\n(anonymous function)\n<\/code><\/pre>\n<p>I read the yepnope bug list and tried alternate menthods like having &#8220;holdrelease.js&#8221; and only jQuery.holdRelease(false); in it and placing it as the last item in queue. I ended up with the same error.<\/p>\n<p><em>can someone explain what&#8217;s wrong here, am I missing something important? I&#8217;m confused&#8230;<\/em><\/p>\n<p id=\"rop\"><small>Originally posted 2013-11-29 06:17:14. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I&#8217;m using yepnope.js to conditionally load css and js files into my page. I&#8217;ve merged my JS files into a single file. The structure is as follows: \/* file *\/ \/\/ &#8211; copy pasted Jquery 1.7rc2.min here &#8211; (function () { console.log(&#8220;enabled hold&#8221;); jQuery.holdReady(true); })(); \/\/ &#8211; copy pasted yepnope.min here &#8211; yepnope([ { test: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1715","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1715","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1715"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1715\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1715"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1715"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1715"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}