jonkemp / jonkemp/inline-css

Running in client side browser - browserify file is huge

Open
#99 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
438
Forks
77
PR merge metrics
No merged PRs in 30d

Description

Great module, but I need to run this on the client side in the user's browser. Following some advice online I tried using browserify to convert the inline-css module to a js file I can include in the web page.

This actually works fine and inline-css does it job inside the browser! But ... the js file created by browserify of the inline-css module is 3.6MB! That is a big js file to weigh down loading the site especially for users on slower connections.

Is there a better way to run inline-css inside a browser without such a huge compiled bundle? Apologies if I am not asking in the right place...

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.