Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.
Trevor Davis edited this page Dec 20, 2017 · 4 revisions

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.

To Use HTTP/2 Upgrade

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:

Clone this wiki locally