From 77770c35eff72b5ad405ac5bfb3c73d8b597491c Mon Sep 17 00:00:00 2001 From: Steve Piercy Date: Wed, 4 Dec 2024 05:44:07 -0800 Subject: [PATCH] Merge content from #1803 --- docs/classic-ui/static-resources.md | 65 ++++++++++++++++++----------- 1 file changed, 40 insertions(+), 25 deletions(-) diff --git a/docs/classic-ui/static-resources.md b/docs/classic-ui/static-resources.md index 002c307eb..ccfa9f24f 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 `