metucclub / bergi

collective log of metu cclub
https://e-bergi.com
Mozilla Public License 2.0
7 stars 6 forks source link

Add django-compressor #7

Closed duck2 closed 6 years ago

duck2 commented 6 years ago

Look at this:

All 7 CSS, JS and SVG files are bite-sized(all <7KB) and easy to inline. If we do so, they won't require other requests and won't block rendering(as you see, they do for ~0.4s).

django-compressor does exactly what we want: parse <link> and <script> elements, inline if in production. Adding it should be a smooth ride.

duck2 commented 6 years ago

Fixed in 08510739d11072fcd4f04dd46bff8c3213aa4252. Look at this beauty now:

(and the sweet font-awesome)