Askedio / Laravel-100-Page-Speed

A package to make it easier to hit a 100 Google Page Speed Insights Score, GTMetrix and Pingdom too.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Minify HTML & Cache 3rd Party Resources

This package will automatically minify your html code and provide a route for 3rd party resources like Google Analytics that have a short cache life.

WARNING

The HTML minifier is very strict and may cause issues with your code. I've resolved all issues with an even stricter version, so you can too.

Install

composer require askedio/laravel-100-page-speed:dev-master

Register the provider

Askedio\Laravel100PageSpeed\PageSpeedServiceProvider::class,

Routes

You now have a /cache/ route with analytics.js by default

/cache/annalytics.js

This will temporarily cache the script in the clients session. It's not to be used for heavy scripts. This is required for a 100 score with Google Analytics

Minifying

All html routes are automatically minified. There will be a config file to control the level of minification (if interest is shown in this project).

About

A package to make it easier to hit a 100 Google Page Speed Insights Score, GTMetrix and Pingdom too.

License:MIT License


Languages

Language:PHP 67.0%Language:Shell 33.0%