-
Notifications
You must be signed in to change notification settings - Fork 680
HTTP2
If you would like to take advantage of HTTP/2 multiplexing for your stylesheets and scripts, this is the task for you! This task sets up limited global CSS file that goes on every page with universal styles, such as header, footer, buttons, typography, etc, while parsing out individual components that have access to the overall project configuration styles (variables, functions, mixins, etc) to be loaded only with their respective HTML template.
Javascript will function similarly, only importing the necessary scripts on a per-module basis.
After running yarn run blendid -- init
run:
yarn run blendid -- http2-upgrade
Note that you must have your server set to HTTP/2 otherwise you will be sending unnecessary requests to your HTTP/1.1 server, slowing it down.
Also note that this upgrade only works with the standard default init task. It may work with the Drupal and Craft init tasks, but will definitely break if used with the Rails init task. If not paired with the default init task, use at your own risk!
For more information:
Visit code.viget.com to see more projects from Viget.