lenarother / django-critical-css

This package helps to optimize the critical rendering path for django websites
MIT License
3 stars 1 forks source link

django-critical-css

.. image:: https://img.shields.io/pypi/v/django-critical-css.svg :target: https://pypi.org/project/django-critical-css/ :alt: Latest Version

.. image:: https://codecov.io/gh/lenarother/django-critical-css/branch/master/graph/badge.svg :target: https://codecov.io/gh/lenarother/django-critical-css :alt: Coverage Status

.. image:: https://readthedocs.org/projects/django-critical-css/badge/?version=latest :target: https://django-critical-css.readthedocs.io/en/stable/?badge=latest :alt: Documentation Status

.. image:: https://travis-ci.org/lenarother/django-critical-css.svg?branch=master :target: https://travis-ci.org/lenarother/django-critical-css

django-critical-css speeds up webpage rendering by saving critical css <https://www.phpied.com/css-and-the-critical-path/>_ in a database.

Features

Requirements

Prepare for development

A Python 3.6 interpreter is required in addition to pipenv.

.. code-block:: shell

$ pipenv install --python 3.6 --dev
$ pipenv shell
$ pip install -e .

Now you're ready to run the tests:

.. code-block:: shell

$ pipenv run py.test

Resources