Skip to content

Commit fb3f8c4

Browse files
fix: improvements from recording 04.04.2025
1 parent 08d0116 commit fb3f8c4

File tree

3 files changed

+25
-7
lines changed

3 files changed

+25
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3966,27 +3966,27 @@ In `script.js`, write a simple script:
39663966

39673967
```javascript
39683968
document.addEventListener("DOMContentLoaded", function () {
3969-
alert("Welcome to My First Website!");
3969+
alert("Welcome to My First Website!");
39703970
});
39713971
```
39723972

39733973
In `styles.css`, add simple styling:
39743974

39753975
```css
39763976
body {
3977-
font-family: Arial, sans-serif;
3977+
font-family: Arial, sans-serif;
39783978
}
39793979

39803980
h1 {
3981-
color: navy;
3981+
color: navy;
39823982
}
39833983
```
39843984

39853985
[![Edit 104-HTML Performance Optimization Techniques](images/codesandbox.svg)](https://codesandbox.io/p/sandbox/104-html-performance-optimization-techniques-qm3w7j)
39863986

39873987
[^104]CodeSandbox: HTML Performance Optimization Techniques.
39883988

3989-
[^104]:[CodeSandbox: HTML Performance Optimization Techniques](https://qm3w7j.csb.app/), last access: September 10, 2024.
3989+
[^104]:[CodeSandbox: HTML Performance Optimization Techniques](https://qm3w7j.csb.app/), last access: April 4, 2025.
39903990

39913991
- 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.
39923992
- **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](https://github.com/codesandbox/codesandbox-client/issues/8610) for more information.**
@@ -4001,7 +4001,7 @@ h1 {
40014001

40024002
[^105]CodeSandbox: HTML Minification and Compression.
40034003

4004-
[^105]:[CodeSandbox: HTML Minification and Compression](https://vdpynt.csb.app/), last access: September 11, 2024.
4004+
[^105]:[CodeSandbox: HTML Minification and Compression](https://vdpynt.csb.app/), last access: April 4, 2025.
40054005

40064006
- This example demonstrates a minified HTML document where unnecessary whitespace, comments, and redundant attributes have been removed to reduce file size and improve load times.
40074007

@@ -4017,7 +4017,7 @@ h1 {
40174017

40184018
[^106]CodeSandbox: Lazy Loading of Images.
40194019

4020-
[^106]:[CodeSandbox: Lazy Loading of Images](https://mx2q9r.csb.app/), last access: September 12, 2024.
4020+
[^106]:[CodeSandbox: Lazy Loading of Images](https://mx2q9r.csb.app/), last access: April 4, 2025.
40214021

40224022
- The `loading="lazy"` attribute is applied to the `<img>` tag, instructing the browser to lazily load the image when it enters the viewport, reducing initial page load times and improving performance.
40234023

@@ -4061,7 +4061,7 @@ body{font-family:Arial,sans-serif}h1{color:navy}
40614061

40624062
[^107]CodeSandbox: CSS and JavaScript Optimization.
40634063

4064-
[^107]:[CodeSandbox: CSS and JavaScript Optimization](https://nz9jsn.csb.app/), last access: September 29, 2024.
4064+
[^107]:[CodeSandbox: CSS and JavaScript Optimization](https://nz9jsn.csb.app/), last access: April 4, 2025.
40654065

40664066
- In this example, CSS and JavaScript files are minified and combined into single files (`styles.min.css` and `scripts.min.js`) to minimize the number of HTTP requests required for fetching external resources, thereby improving page load times.
40674067

__extra-resources/preload-as.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Issue with Code
2+
3+
We apologize for the inconvenience caused during the recording when the code example didn't work as expected.
4+
This issue has been identified as a bug and has been reported to CodeSandbox.
5+
You can track the progress of the issue here: [CodeSandbox Issue #8610](https://github.com/codesandbox/codesandbox-client/issues/8610).
6+
7+
For further reference and to deepen your understanding, you can consult the relevant documentation on MDN:
8+
[MDN Web Docs - rel="preload"](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel/preload).
9+
10+
Thank you for your patience and understanding!

__presentation-slides/index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2792,6 +2792,10 @@ <h2>Main Section</h2>
27922792

27932793
---
27942794

2795+
### HTML Performance Optimization Techniques <!-- .slide: data-transition="zoom" data-transition-speed="slow" -->
2796+
2797+
---
2798+
27952799
#### HTML Performance Optimization Techniques <!-- .slide: data-transition="zoom" data-transition-speed="slow" -->
27962800

27972801
```html[|6|7|3,8]
@@ -2841,6 +2845,10 @@ <h1>Hello, World!</h1>
28412845
<p>Welcome to our optimized website.</p>
28422846
```
28432847

2848+
[![Edit 106-Lazy Loading of Images](images/codesandbox.svg)](https://codesandbox.io/p/sandbox/106-lazy-loading-of-images-mx2q9r)
2849+
2850+
[CodeSandbox: Lazy Loading of Images](https://mx2q9r.csb.app/).
2851+
28442852
---
28452853

28462854
### Minimizing HTTP Requests <!-- .slide: data-transition="zoom" data-transition-speed="slow" -->

0 commit comments

Comments
 (0)