Dash Defer JS Import
Dash Defer JS Import is a Dash component library.
Its purpose is to defer loading JS scripts until after the Dash React elements have loaded.
Installation
The package has been released to pypi and npm. Easy thing is to install using pip:
pip install dash_defer_js_import
To install from source, clone the repo and
npm install
npm run build:all
python setup.py sdist
pip install dist/dash_defer_js_import-0.0.1.tar.gz
Note: his assumes you have the requirements already installed, if not, see requirements.txt Might want to use venv to not mess up your own repo ...)
Usage:
import dash_defer_js_import as dji
# Dash server initi and layout setup
# ...
app.layout = html.Article(dji.Import(src="./path/to/script.js"))
Credits
This component is based on the grasia-dash-component
It was initialized using cookiecutter thanks to the https://github.com/plotly/dash-component-boilerplate.git cookiecutter .
Metadata
Release files for dash-defer-js-import 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| dash_defer_js_import-0.0.2.tar.gz | 36.9 kB | Without provenance | Details |
Release files / dash_defer_js_import-0.0.2.tar.gz
| Download URL | dash_defer_js_import-0.0.2.tar.gz |
|---|---|
| Size | 36.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
403fef93d46535ed3ad4d5df0749136cfd1439d6956ff877b40dc47021df1e4a
|
|
BLAKE2b-256 checksum How to use checksums |
015500cb28fbfa48c14815cef2c3754fab9c9dad93cbe4b8a8492e0e5aa516ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
|
Security for dash-defer-js-import 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.