Skip to content

Commit

Permalink
readme update 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirk Fletcher committed May 8, 2019
1 parent 70895db commit 0e5b0e0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@

# Laravel Pagespeed
# Laravel Pagespeed (for Laravel 5.7 and up)

Pagespeed is a simple package to apply filters to the view output such as removing whitespace and comments (a lot more to come). The benefit is quite considerable page speed increase, great if you are looking to increase score on Google's Pagespeed Insights, and even better for a smooth user experience.

In addition to applying selected filters, rendered views are cached using the cache configuration you have set-up in Laravel (I recommend using memcached). This allows for lightning fast rendering and delivery of pages.

Obviously while this is good for static pages such as homepage, contact us etc, this will prevent the use of pages with dynamic content. However, if a user is logged in the package will skip serving the cached page and serve a dynamic page (still applying filters).


### Installation

composer require kirksfletcher/pagespeed:dev-master


### Usage is simple:



Whilst you are free to choose your own implementation method, here is the one I like to use.


Expand Down

0 comments on commit 0e5b0e0

Please sign in to comment.