From 51e5dc6d3190f223704a81b21ce896a8a69333ec Mon Sep 17 00:00:00 2001 From: Steve Piercy Date: Fri, 6 Dec 2024 02:40:45 -0800 Subject: [PATCH] =?UTF-8?q?Document=20how=20to=20specify=20a=20static=20re?= =?UTF-8?q?source=20bundle=20to=20load=20as=20the=20last=20=E2=80=A6=20(#1?= =?UTF-8?q?802)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Document how to specify a static resource bundle to load as the last one in Classic UI * Merge content from #1803 * Add clause for multiple `all`s * More merge and removal of redundant content * Update docs/classic-ui/static-resources.md Co-authored-by: Peter Mathis * Update docs/classic-ui/static-resources.md Co-authored-by: Yuri * Retain friendly "you", but use "both" --------- Co-authored-by: Peter Mathis Co-authored-by: Johannes Raggam Co-authored-by: Yuri --- docs/classic-ui/static-resources.md | 64 ++++++++++++++++++++--------- 1 file changed, 44 insertions(+), 20 deletions(-) diff --git a/docs/classic-ui/static-resources.md b/docs/classic-ui/static-resources.md index 84a8aec56..5234813e9 100644 --- a/docs/classic-ui/static-resources.md +++ b/docs/classic-ui/static-resources.md @@ -12,7 +12,11 @@ myst: # Static resources We often want to ship a website with a static resource, such as an image, icon, CSS, or JavaScript file. -For this, we need to register static resources. +For CSS and JavaScript files, we can use the resource registry to register, then deliver, them to the client browser. + +The resource registry provides a programmatic way, either in code or through the web, to extend and configure the dependencies between static resources. +It also automatically manages caching of static resources. +If you were to hard-code these resources in templates with `` or `