Skip to content

iondrimba/injectme

Repository files navigation

injectme

Inject CSS and JS inside your html

Build Status Build status Coverage Status

GOAL

  1. Avoid render blocking files
  2. Optimize critical path / above the fold CSS
  3. Optimize loading

INSTALL

 npm install injectme -g

TODO

  • Develop a Gulp plugin for easy integration
  • Write more tests

Target Project

  • This package is meant to be used with Single Page Applications

Terminal

Inside the terminal type:

injectme public/css/app.css public/index.html

Multiple files

  • multiple parameters are passed inside quotes and comma separeted 'param1', 'param2'
injectme 'public/js/app.js','public/css/app.css' public/index.html