Skip to content

Commit 97924b4

Browse files
committed
Updated readme.md
1 parent 1feba21 commit 97924b4

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

README.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,28 @@
11
# page-specific-css
2-
Php library which determines critical css on a per page basis.
2+
Small php library in combination with a twig extention that allows you to annotate above-the-fold-html in your twig files which will than extract all the necessary CSS.
3+
4+
In combination with loadCSS you can setup a page-specific critcal CSS solution quite easy.
5+
6+
## Install
7+
```bash
8+
composer install page-specific-css
9+
```
10+
11+
## Usage
12+
```twig
13+
{% fold %}
14+
<button class=”your-css-class”>Button</button>
15+
{% endfold %}
16+
```
17+
18+
## Usage
19+
```twig
20+
<!-- output -->
21+
<head>
22+
<style>
23+
.your-css-class {
24+
color: pink;
25+
}
26+
</style>
27+
</head>
28+
```

0 commit comments

Comments
 (0)