Php script for optimize any existing site code. This can help you to get more points from Google Page Speed Insights and GTmetrix and get faster site loading times. You can optimize Worpress site or you can optimise Joomla site, you can optimize any site with this single script!
Description
The script makes it easy to optimize CSS delivery and minify HTML. This tool fixes render-blocking JavaScript issue and prioritizes visible content by means of the above-the-fold content reduction.
The best solution for any Web developer to move style tags, scripts, defer scripts, optimize images, minify the page code. Additionally, it also can add a nice loading spinner to your page before the whole site is shown, as well as combine styles and scripts in a single file, defer images.
It is tested with Wordpress and Joomla, but may help you to optimize any existing site code with any CMS or raw code.
Features:
- a) Basic settings:
- Style tag movement – moves the style tags to the page bottom
- Inline style movement – moves the inline styles to the page bottom
- Script tag movement – moves the script tag to the page bottom
- Inline script movement – moves the inline script to the page bottom (When all the scripts are moved, the script loading will be deferred)
- Image optimization – decreases the images size and compresses it
- Space clearance – minifies the code deleting the unnecessary indents and blank spaces
- Code minification – minifies the code deleting the unnecessary indents and blank spaces
- b) Advanced settings
- Preloader – the nice spinning loading box is added before the page is completely loaded. It can be better for view after the styles are moved to the page bottom
- Combine styles – combines all the files into one minified file (works only for local styles because of relative paths, file will be cached)
- Combine scripts – combines scripts into one minified file (file will be cached)
- Combine inline scripts – combines inline scripts into one minified file (file will be cached)
- Images defer – defers images loading on the site
- Dever videos (youtube iframes)
- Use WebP images (need to upload WebP format images manually)
- Generate Critical CSS
- Full Page Cache
- Reduce site code by use ajax loading of site parts
- Different optimization and cache for devices types
Changelog:
May 2019
* Added deferring of css background-image
Apr 2019
* Defer Youtube videos (iframe) function added
* Remove unused css from combines styles and use only actual page styles
Feb 2019
* Added mobile pages splitter
* Added an ability to use webp images (need to be converted and uploaded manually)
* New image deffering function
Sep 2018
* Added css @media parser for add critical css for different device types
* Added new parameters for exclude scripts and styles
* Added new parameter for loading spinner duration
Aug 2018
v.1.0.2
* Added mobile detect for make different cache for mobiles/tablets/desktops
* CriticalCSSLimit parameter