django-critical-css aims to speed up webpage rendering by saving critical css in db.
Project description
- django-critical-css speeds up webpage rendering by saving
critical css in a database.
Features
critical_css templatetag to inline critical css from the database.
empty_critical_css management command.
signal for emptying critical css upon page publication when using django-cms.
Requirements
Python 3 only
at least Django 1.11
Prepare for development
A Python 3.6 interpreter is required in addition to pipenv.
$ pipenv install --python 3.6 --dev
$ pipenv shell
$ pip install -e .
Now you’re ready to run the tests:
$ pipenv run py.test
Resources
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-critical-css-0.0.3.tar.gz
.
File metadata
- Download URL: django-critical-css-0.0.3.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7eebd55392811f31a917882fd8010abfeb4b6ff34b66b85d987308ec744482b8 |
|
MD5 | 07c6698bff595463680333ffa9ca30c8 |
|
BLAKE2b-256 | 8dc50d9d115bff90d303d4a4a72ed671e6230c08cb6982377f25059bdc8a2ffd |