Skip to content

HTML Injector vs style tag in HTML template #496

Answered by s-cork
yahiakala asked this question in Q&A
Discussion options

You must be logged in to vote

Probably. My main issue with the css in html solution is that this css will be injected into the page for every component added.

For development you could use a css file in the html. And for production, inject it in the python module. I would probably adapt the current css injector and inject a link tag instead if you go down this route.

We didn't do this in the past because asset files were previously not available in dependencies.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@yahiakala
Comment options

@s-cork
Comment options

Answer selected by yahiakala
@s-cork
Comment options

@yahiakala
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants