Above-the-fold CSS generation + inlining using Critical & Gulp
Compare the normal output with the critical-path CSS optimized version.
PageSpeed results for before:
and after:
$ cd critical-path-angular-demo
$ npm install && bower install
You have two options:
The normal build:
gulp
Build including critical-path CSS extraction & inlining:
gulp critical
Either option will write the output to the dist
directory.