{"id":18630,"date":"2012-06-17T17:52:34","date_gmt":"2012-06-17T17:52:34","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-headjs\/"},"modified":"2012-06-17T17:52:34","modified_gmt":"2012-06-17T17:52:34","slug":"wp-headjs","status":"publish","type":"plugin","link":"https:\/\/bal.wordpress.org\/plugins\/wp-headjs\/","author":7896789,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.1","stable_tag":"trunk","tested":"3.2.1","requires":"2.9.1","requires_php":"","requires_plugins":"","header_name":"WP HeadJS","header_author":"Brian Zeligson","header_description":"","assets_banners_color":"","last_updated":"2012-06-17 17:52:34","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.brianzeligson.com","header_plugin_uri":"http:\/\/github.com\/beezee\/wp_headjs","header_author_uri":"http:\/\/www.brianzeligson.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1647,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[8910,229,23026],"plugin_category":[59],"plugin_contributors":[84489],"plugin_business_model":[],"class_list":["post-18630","plugin","type-plugin","status-publish","hentry","plugin_tags-headjs","plugin_tags-javascript","plugin_tags-wp_enqueue_script","plugin_category-utilities-and-tools","plugin_contributors-beezeee","plugin_committers-beezeee"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-headjs.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin uses the wp_print_scripts action hook, as opposed to output buffering and regex used by alternative implementations.<\/p>\n\n<p>The downside of this method is that only scripts loaded via wp_enqueue_script will be affected by the plugin, the upside is better\nperformance by avoiding output buffering on every page load.<\/p>\n\n<p>The plugin will preserve any localizations added via wp_localize_script, and uses the first parameter passed to wp_enqueue_script\nas the label for the script in the head.js call. For example,<\/p>\n\n<pre><code>wp_enqueue_script('jquery', 'https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.7.1\/jquery.min.js');\n<\/code><\/pre>\n\n<p>would show up as<\/p>\n\n<pre><code>head.js({\"jquery\": \"https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.7.1\/jquery.min.js\"});\n<\/code><\/pre>\n\n<p>This allows you to run callbacks when specific scripts are ready, such as<\/p>\n\n<pre><code>head.ready('jquery', function() {\n    \/\/do something when jquery is loaded\n});\n<\/code><\/pre>\n\n<p>For more on HeadJS usage, see http:\/\/headjs.com\/<\/p>\n\n<!--section=installation-->\n<p>The easiest way is via Plugins-&gt;Add New from the left sidebar of your WP Admin, just search for headjs.<\/p>","raw_excerpt":"Uses HeadJS to load your enqueued scripts asynchronously, in parallel, executing them in order.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/18630","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=18630"}],"author":[{"embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/beezeee"}],"wp:attachment":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=18630"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=18630"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=18630"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=18630"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=18630"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=18630"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}