{"id":11922,"date":"2011-01-25T14:24:56","date_gmt":"2011-01-25T14:24:56","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/headjs-loader\/"},"modified":"2013-01-25T13:29:09","modified_gmt":"2013-01-25T13:29:09","slug":"headjs-loader","status":"publish","type":"plugin","link":"https:\/\/kea.wordpress.org\/plugins\/headjs-loader\/","author":5694742,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.2","stable_tag":"trunk","tested":"3.5.2","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"Head JS Loader","header_author":"ChuckMac","header_description":"","assets_banners_color":"","last_updated":"2013-01-25 13:29:09","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/chuckmac.info\/","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/headjs-loader\/","header_author_uri":"http:\/\/www.chuckmac.info","rating":3,"author_block_rating":0,"active_installs":10,"downloads":9280,"num_ratings":3,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"0.2":"<p>Major rework!\n* Updated to head.js 0.99\n* Added admin options page so you can chose which version to load\n* Allow inline javascript to be wrapped in head.ready calls<\/p>","0.1.1":"<p>Fixed bug that caused apache erorr messages if no javascript was declared.<\/p>"},"ratings":{"1":"1","2":0,"3":"1","4":0,"5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1.1","0.2"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[356,229,1731],"plugin_category":[59],"plugin_contributors":[91665],"plugin_business_model":[],"class_list":["post-11922","plugin","type-plugin","status-publish","hentry","plugin_tags-css","plugin_tags-javascript","plugin_tags-js","plugin_category-utilities-and-tools","plugin_contributors-durin","plugin_committers-durin"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/headjs-loader.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin reformats your page to utilize <a href=\"http:\/\/headjs.com\" title=\"HeadJS\">Head JS<\/a> in your WordPress site.<\/p>\n\n<p><strong>Caution: this plugin can cause major issues with the javascript on your site if not implemented properly.  Please be sure to test on a development server first<\/strong><\/p>\n\n<p>It strips out all your old javascript declarations and puts them into head.js calls so that they are loaded in parallel (see the Head JS website for more details).<\/p>\n\n<p>Optionally you can wrap all your inline javascript with head.ready calls.<\/p>\n\n<p>For example, this:<\/p>\n\n<pre><code>&lt;script type='text\/javascript' src='http:\/\/yoururl.com\/wp-includes\/js\/prototype.js?ver=1.6.1'&gt;&lt;\/script&gt; \n&lt;script type='text\/javascript' src='http:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.4\/jquery.min.js?ver=3.0.4'&gt;&lt;\/script&gt; \n&lt;script type='text\/javascript' src='http:\/\/yoururl.com\/wp-includes\/js\/scriptaculous\/wp-scriptaculous.js?ver=1.8.3'&gt;&lt;\/script&gt; \n&lt;script type='text\/javascript' src='http:\/\/yoururl.com\/wp-includes\/js\/scriptaculous\/builder.js?ver=1.8.3'&gt;&lt;\/script&gt; \n&lt;script type='text\/javascript' src='http:\/\/yoururl.com\/wp-includes\/js\/scriptaculous\/effects.js?ver=1.8.3'&gt;&lt;\/script&gt; \n&lt;script type='text\/javascript' src='http:\/\/yoururl.com\/wp-includes\/js\/scriptaculous\/dragdrop.js?ver=1.8.3'&gt;&lt;\/script&gt; \n&lt;script type='text\/javascript' src='http:\/\/yoururl.com\/wp-includes\/js\/scriptaculous\/slider.js?ver=1.8.3'&gt;&lt;\/script&gt; \n&lt;script type='text\/javascript' src='http:\/\/yoururl.com\/wp-includes\/js\/scriptaculous\/controls.js?ver=1.8.3'&gt;&lt;\/script&gt; \n<\/code><\/pre>\n\n<p>Becomes:<\/p>\n\n<pre><code>&lt;script type=\"text\/javascript\" src=\"http:\/\/yoururl.com\/wp-content\/plugins\/headjs-loader\/js\/head.min.js\"&gt;&lt;\/script&gt; \n&lt;script&gt; \nhead.js(\"http:\/\/yoururl.com\/wp-includes\/js\/prototype.js?ver=1.6.1\",\n    \"http:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.4\/jquery.min.js?ver=3.0.4\",\n    \"http:\/\/yoururl.com\/wp-includes\/js\/scriptaculous\/wp-scriptaculous.js?ver=1.8.3\",\n    \"http:\/\/yoururl.com\/wp-includes\/js\/scriptaculous\/builder.js?ver=1.8.3\",\n    \"http:\/\/yoururl.com\/wp-includes\/js\/scriptaculous\/effects.js?ver=1.8.3\",\n    \"http:\/\/yoururl.com\/wp-includes\/js\/scriptaculous\/dragdrop.js?ver=1.8.3\",\n    \"http:\/\/yoururl.com\/wp-includes\/js\/scriptaculous\/slider.js?ver=1.8.3\",\n    \"http:\/\/yoururl.com\/wp-includes\/js\/scriptaculous\/controls.js?ver=1.8.3\"\n);\n&lt;\/script&gt; \n<\/code><\/pre>\n\n<p>Feel free to contribue to the project on <a href=\"http:\/\/github.com\/ChuckMac\/wp-headjs-loader\">GitHub<\/a>!<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>headjs-loader<\/code> directory to <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>No questions<\/dt>\n<dd><p>No answers.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.1.1<\/h4>\n\n<ul>\n<li>Fixed bug that caused apache erorr messages if no javascript was declared.<\/li>\n<\/ul>\n\n<h4>0.1<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"A WordPress plugin to load your Javascript files via Head JS.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/11922","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=11922"}],"author":[{"embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/durin"}],"wp:attachment":[{"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=11922"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=11922"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=11922"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=11922"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=11922"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=11922"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}