'/files/cache' Īlso, if you have more than 10 CSS or JS files in the same directory, you need to up the file limit: $min_serveOptions = 20 Įnsure your theme has this code as close to the closing body tag as possible: To get it to work, install it at the root of your site (I'm still testing to see if it can live in /tools/ for example, but the docs say SITE_ROOT) and edit the /min/config.php to point to concrete5's cache directory: $min_cachePath = $_SERVER. Only include and when the user is logged in (if you use the layouts feature you need to change something, see below).Load jquery from Google's CDN in the header for the public.By default include CSS in the header and JS in the footer, with an override.config/site.php option to turn it on or off. I ran with this idea and modified a few other files to do the following: Taking a look through libraries/view.php I found some commented out code to use Minify. Put the files in the respective folders in the site root. Go to the forum link and download the attachment. The first section is getting Minify working, and the second section is installing and configuring BootstrapCache.ĭownload these two packages and copy Minify to /min and BootstrapCache to /libraries/bootstrapcache and make the change in /concrete/dispatcher.php. My testing has a site going from ~4.5s to ~2s per page load, YMMV. Using the below techniques you can speed up your site's page load time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |