Skip to content

Commit

Permalink
Document resource registry depends-all feature.
Browse files Browse the repository at this point in the history
  • Loading branch information
thet committed Dec 4, 2024
1 parent f1359e3 commit f1c76b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/classic-ui/static-resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ The following attributes are available for registering a static resource:
For a single dependency, just put it's name in there.
When a bundle depends on another one, the script or link tag is rendered after the bundle it depends on.
The bundle you want to depend on must exist, otherwise the resource is not rendered.
You can use the special value `all` to depend on all other resources and have the resource rendered after all other (new in Plone 6.0.14).
This allows CSS files be loaded after the automatically added theme resources and overload CSS declarations from own CSS customization files.
There is one exception though - the custom CSS files which can be edited trough the web in the theming control panel always come last.

`load_async`
: Whether the bundle should be loaded asynchronously or not.
Expand Down

0 comments on commit f1c76b6

Please sign in to comment.