/htmlAnalyzer

html inlined resources size analyzer

Primary LanguageJavaScriptApache License 2.0Apache-2.0

htmlAnalyzer

Purpose

We must do some optimizations on mobile web page first load. We also put all static resources inline on the html document. I write the html analyzer to analyze any web page inlined resource size on Internet and give the final result. External resources are skipped. For example:

<link type="text/css" rel="stylesheet" href="a.css" />
<script src="a.js"></script>

Will not be caught to do any analyse because they are externally referred.

<script src="a.js"></script>

Installation

Make sure you have phantomjs installed. htmlAnalyzer depend on it to fetch url web page content then report the result. You may encounter the problem describe here if you run the program on MAC OS Yoesmite.

Then you install htmlAnalyzer through npm:

npm install htmlAnalyzer -g

Usage

Tips