{"repo":"kasparsd/minit","free":true,"listed":false,"github":"https://github.com/kasparsd/minit","clone":"git clone https://github.com/kasparsd/minit.git","description":"A WordPress plugin to combine CSS and Javascript files.","language":"PHP","stars":280,"topics":["php","wordpress","wordpress-plugin","performance","css","js","concatenation"],"license":"GPL-2.0","category":"self-hosted-apps","readme_excerpt":"Minit for WordPress Places all your CSS and Javascript files into dedicated bundles that can be cached by browsers and re-used between requests. It assumes that a single request with slightly larger transfer size is more performant than multiple smaller requests (even with HTTP/2 multiplexing). Install Install using Composer: composer require kasparsd/minit or by manually downloading the latest release file. How it Works - Concatenates all CSS files and Javascript files one file for each type ( .js and .css ), and stores them in the WordPress uploads directory under /minit . See the configuration section below for how to exclude files from the bundle. - Uses the combined version numbers of the enqueued assets to version the bundles. - Loads the concatenated Javascript file in the footer as deferred. This will probably break all inline scripts that rely on jQuery being available. See the configuration section below for how to disable this. Screenshots 1. All CSS files combined in a single file 2. All external Javascript files loading asynchronously Configuration See the Wiki for additional documentation. Disable Deferring Javascript Use the minit-script-tag-async filter (legacy name when async was preferred) to load the concatenated Javascript synchronously: add filter( 'minit-script-tag-async', ' return false' ); Exclude Files Use the minit-exclude-js and minit-exclude-css filters to exclude files from the concatenated bundles: add filter( 'minit-exclude-js', function( $handl","default_branch":null,"files":null,"tree":[],"storefront":"/r/kasparsd","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kasparsd/minit/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}