Promo image for Go HTML Asset Manager of a gopher carrying a heavy box

go-html-asset-manager provides a simple way to optimize CSS & JavaScripts assets in your statically generated site.

Why?

Improving your sites performance can be a difficult task, balancing best practice, feature support, playform changes and legacy content.

This tool is designed to be run on generated static sites and improve the performance by adding assets that are necessary, in an efficient mannger and without risk.

This tool does the following:

How?

The tool takes a configuration file to describe the project and then it looks for files following a specific naming format.

<HTML Element | CSS Classname>[-<inline | sync | async | preload>][.<media>].<css | js>

This format is used by the HTML asset manager to determine which assets are need in each HTML file.

For example, a HTML page with a <h1> element would have the following assets injected into them:

Diagram of how go-html-asset-manager works

Found an Issue?

If you've found an issue, please report it here.

Want the Source Code?

This project is available on GitHub at github.com/gauntface/go-html-asset-manager.

Found an issue?

All my posts are available to edit on GitHub, any fix is greatly appreciated!

Edit on GitHub