You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-18Lines changed: 16 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3852,6 +3852,7 @@ h1 {
3852
3852
[^104]:[CodeSandbox: HTML Performance Optimization Techniques.](https://qm3w7j.csb.app/), last access: September 10, 2024.
3853
3853
3854
3854
- In this example, the `<link rel="preload">` tag is used to prioritize the loading of critical resources (CSS and JavaScript files) by indicating their importance and specifying the `as` attribute to define the resource type.
3855
+
-**There is a problem with this example in CodeSandbox environment to get it fully working, it's just for your information how it should work, sorry for that. Follow https://github.com/codesandbox/codesandbox-client/issues/8610 for more information.**
3855
3856
3856
3857
##### Code Example: HTML Minification and Compression
[^119]:[CodeSandbox: Caching Assets for Offline Use.](https://tmpq6w.csb.app/), last access: October 11, 2024.
4338
4337
4339
4338
- The code above demonstrates how to cache assets for offline use using a Service Worker.
4340
-
- During the Service Worker installation phase (`install` event), it opens a cache named `my-site-cache-v1`.
4341
-
- It then adds specified URLs (including HTML, CSS, JavaScript, and image files) to the cache using the `addAll()` method.
4339
+
- During the Service Worker installation phase (`install` event), it opens a cache named `v1`.
4340
+
- It then adds specified URLs (including HTML, CSS, JavaScript, and image files) to the cache using the `addAll()` method, embedded in `addResourcesToCache()`.
4342
4341
- The cached assets can be served from the cache when the user is offline, providing offline access to the application.
4343
-
-**There is a problem with this example in CodeSandbox environment to get it fully working, it's just for your information how it should work, sorry for that.**
0 commit comments