Skip to content

Deferred static files#77

Merged
Archmonger merged 37 commits into
reactive-python:mainfrom
Archmonger:static-css
Jul 1, 2022
Merged

Deferred static files#77
Archmonger merged 37 commits into
reactive-python:mainfrom
Archmonger:static-css

Conversation

@Archmonger

@Archmonger Archmonger commented Jun 23, 2022

Copy link
Copy Markdown
Contributor

This PR adds a static_css component, which reads the CSS file's from disk, stores the contents in cache (for performance purposes), and then puts the file contents into a html.style tag.

Currently, IDOM has no real way to "wait for CSS to load". This will lead to visual jank when attempting to use html.link to defer load CSS loading until a certain component exists. For example, visual jank occurs when using

html.link({"rel": "stylesheet", "href": static("conreq/buttons.css")})

This also mitigates the need for the following (within Django only):

Changelog

  • Deferred static file components
  • Docs for deferred static files
  • Bump minimum IDOM version
  • Create PR templates
  • Sync issue form template with idom-team/idom
  • Pin selenium to 4.2 for compatibility
  • Bump django-idom to v1.1.0
  • Docstring for component template tag
  • Minor readme wordsmithing

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Welcome Message" CI Workflow

2 participants