Drop in caching and compressing script to your assets folder.
- Caches files automatically
- Minifies CSS, JS and HTML files automatically
- SASS/LESS pre-processing
- More image compression methods
- On-demand image resizing and cropping
Copy index.php
and .htaccess
files to your assets folder.
You can see some configuration options in index.php
file.
Load assets and resources the way you did before and files are cached automatically.
You can compress images by adding a query string argument to the URL. Example: https://example.com/assets/img/example.jpg**?10**
. Quality values can be from 1 to 100. 1 being lowest and 100 highest quality.
See example/ for more details.