<commit_before>critical-path-css-demo
======================

Generate and inline critical-path CSS example using [Oust](http://github.com/addyosmani/oust), [Penthouse](https://github.com/pocketjoso/penthouse) and [gulp-inline](https://github.com/ashaffer/gulp-inline/).

### Why is critical-path CSS important?

> CSS is required to construct the render tree for your pages and JavaScript will often block on CSS during initial construction of the page. You should ensure that any non-essential CSS is marked as non-critical (e.g. print and other media queries), and that the amount of critical CSS and the time to deliver it is as small as possible.

### Why should critical-path CSS be inlined?

> For best performance, you may want to consider inlining the critical CSS directly into the HTML document. This eliminates additional roundtrips in the critical path and if done correctly can be used to deliver a “one roundtrip” critical path length where only the HTML is a blocking resource.

## Installation

```
cd critical-path-css-demo
npm install
```

## Generating and inlining critical-path CSS

The default (minify, concat) build for the project can be run with:

```
gulp
```
<commit_msg>Revise readme to point to critical.<commit_after>critical-path-css-demo
======================

Generate and inline critical-path CSS example using [Critical](http://github.com/addyosmani/critical).

### Why is critical-path CSS important?

> CSS is required to construct the render tree for your pages and JavaScript will often block on CSS during initial construction of the page. You should ensure that any non-essential CSS is marked as non-critical (e.g. print and other media queries), and that the amount of critical CSS and the time to deliver it is as small as possible.

### Why should critical-path CSS be inlined?

> For best performance, you may want to consider inlining the critical CSS directly into the HTML document. This eliminates additional roundtrips in the critical path and if done correctly can be used to deliver a “one roundtrip” critical path length where only the HTML is a blocking resource.

## Installation

```
cd critical-path-css-demo
npm install
```

## Generating and inlining critical-path CSS

The default (minify, concat) build for the project can be run with:

```
gulp
```

{'fraction_non_alphanumeric': 0.08859118409680207, 'fraction_numerical': 0.0, 'mean_word_length': 4.605326876513317, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '157242', 'n_tokens_mistral': 610, 'n_tokens_neox': 577, 'n_words': 308}