Skip to main content

django-critical-css aims to speed up webpage rendering by saving critical css in db.

Project description

Latest Version Coverage Status Documentation Status https://travis-ci.org/lenarother/django-critical-css.svg?branch=master
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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-critical-css-0.0.1.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

django_critical_css-0.0.1-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file django-critical-css-0.0.1.tar.gz.

File metadata

  • Download URL: django-critical-css-0.0.1.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.7

File hashes

Hashes for django-critical-css-0.0.1.tar.gz
Algorithm Hash digest
SHA256 57e78619eeb1844ce655f73ad121ae1ccfeaa20dee9e1628abcd2d0abab787af
MD5 cfaa9ee4d84efc0e392392cb3ecb77c0
BLAKE2b-256 ff17349563968df8878d05beec7fa61d51cf74982aac51462455f5ffbfa73b11

See more details on using hashes here.

File details

Details for the file django_critical_css-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: django_critical_css-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.7

File hashes

Hashes for django_critical_css-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3499bb7751929de388b080c7155cf32d60b6da1919bac42ed98af5f2ca4d455b
MD5 c895aa81a2b151eaf8ef4ffef4b97240
BLAKE2b-256 b04deeb74b911328f687c12cca4c0781be4f10b726363e938d08fab626f4e192

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page