{"id":33661,"date":"2014-12-29T20:33:43","date_gmt":"2014-12-29T20:33:43","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-jshrink\/"},"modified":"2015-01-05T23:20:20","modified_gmt":"2015-01-05T23:20:20","slug":"wp-jshrink","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/wp-jshrink\/","author":14200636,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1.3","stable_tag":"trunk","tested":"4.1.42","requires":"4.0","requires_php":"","requires_plugins":"","header_name":"WP JSHRINK","header_author":"Vic M","header_description":"","assets_banners_color":"2f2f2f","last_updated":"2015-01-05 23:20:20","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/wp-jshrink\/","header_author_uri":"http:\/\/victor.miletskiy.name","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1288,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1056509","resolution":"772x250","location":"assets","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1.2"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1060858","resolution":"1","location":"assets","width":793,"height":485}},"screenshots":{"1":"Before &amp; after, number of requests significantly reduced."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[229,1736],"plugin_category":[59],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-33661","plugin","type-plugin","status-publish","hentry","plugin_tags-javascript","plugin_tags-minify","plugin_category-utilities-and-tools","plugin_committers-vic-trigger"],"banners":{"banner":"https:\/\/ps.w.org\/wp-jshrink\/assets\/banner-772x250.png?rev=1056509","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-jshrink_2f2f2f.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/wp-jshrink\/assets\/screenshot-1.png?rev=1060858","caption":"Before &amp; after, number of requests significantly reduced."}],"raw_content":"<!--section=description-->\n<p>JShrink minifier implemented for WordPress. Combines footer scripts equeued by wp_enqueue_script into a single minified js file. Check the FAQ section for more info about the plugin.<\/p>\n <p>Important note: only footer scripts which are equeued by wp_enqueue_script with the fifth parameter set to 'true' are minified by this plugin.<\/p>\n <p>JShrink is a php class that minifies javascript so that it can be delivered to the client quicker. Check https:\/\/github.com\/tedious\/JShrink for more info.<\/p>\n <p>Works for sure with: Wordpress 4.0+, PHP 5.4+.<\/p>\n\n<!--section=installation-->\n<p>Just install and activate the plugin, and it will seamlessly minify and combine javascript in the footer. No other actions required from your side.<\/p>\n\n<!--section=faq-->\n<h4>Why would I use it?<\/h4>\n <p>It will help you to reduce number of scripts on your page and hence reduce number of http requests to your server.<\/p>\n <h4>When does it make sense?<\/h4>\n <p>If you have 3 js files enqueued in your footer - you definitely don't need this plugin. If you there are like 20 of them - then probably you do.<\/p>\n <h4>What gets minified?<\/h4>\n <p>Scripts from the current theme, wp-includes &amp; plugins.<\/p>\n <h4>Why only footer scripts?<\/h4>\n <p>To encourage people put their javascript in the footer.<\/p>\n <h4>Does it minify css?<\/h4>\n <p>No. Initially it was a small plugin for personal usage in conjunction with wp-less. Consider using LESS or SCSS to put your css together in a single file or use any other css minifier.<\/p>\n <h4>Does it uglify my javascript?<\/h4>\n <p>No. Only minifies and combines into a single file.<\/p>\n <h4>Grunt, Gulp, xxx and yyy already do this<\/h4>\n <p>This is yet another tool which you may either use or not use, it's up to you :)<\/p>\n\n<!--section=changelog-->\n<h4>Version 1.1.2<\/h4>\n <ul>\n<li>Stable tag<\/li>\n<\/ul>\n <h4>Version 1.1.1<\/h4>\n <ul>\n<li>Unused code like tests removed from library to reduce package size<\/li>\n<\/ul>\n <h4>Version 1.1<\/h4>\n <ul>\n<li>Hardcoded paths removed<\/li>\n<\/ul>\n <h4>Version 1.0<\/h4>\n <ul>\n<li>Very basic API<\/li>\n<li>Plugin goes public<\/li>\n<\/ul>","raw_excerpt":"JShrink minifier implemented for WordPress. Combines footer scripts equeued by wp_enqueue_script into a single minified js file.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/33661","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=33661"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/vic-trigger"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=33661"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=33661"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=33661"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=33661"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=33661"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=33661"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}