-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR: - makes sure to only use one H1 tag on the page - shrinks the hero image from `371 KB` to `77.8 KB` and sets the `width` and `height` attributes to prevent layout shift - compresses videos used on landing by `50%` - lazy loads videos using intersection observer – videos will only be loaded when in view - during video loading a lightweight placeholder is shown to prevent layout shifts - this is important because we used to load 10MB of video on page load even for users which never scrolled down the page See before: <img width="387" alt="image" src="https://github.com/user-attachments/assets/34fad20d-6cdd-452f-9dbf-78a3e354867f" />
- Loading branch information
1 parent
dbf16c3
commit 7d0607f
Showing
26 changed files
with
53 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,6 +65,7 @@ | |
width: 100%; | ||
height: auto; | ||
margin-bottom: -10px; | ||
background-color: #232736; | ||
} | ||
|
||
.logo { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+6.59 KB
packages/docs/static/video/placeholders/1_sztudio_integrated_placeholder.webp
Binary file not shown.
Binary file added
BIN
+6.45 KB
packages/docs/static/video/placeholders/2_sztudio_inspect_placeholder.webp
Binary file not shown.
Binary file added
BIN
+7.13 KB
packages/docs/static/video/placeholders/3_sztudio_debugger_placeholder.webp
Binary file not shown.
Binary file added
BIN
+6.08 KB
packages/docs/static/video/placeholders/4_sztudio_url_bar_placeholder.webp
Binary file not shown.
Binary file added
BIN
+6.91 KB
packages/docs/static/video/placeholders/5_sztudio_logs_panel_placeholder.webp
Binary file not shown.
Binary file added
BIN
+7.66 KB
packages/docs/static/video/placeholders/6_sztudio_preview_placeholder.webp
Binary file not shown.
Binary file added
BIN
+7.93 KB
packages/docs/static/video/placeholders/7_sztudio_device_settings_placeholder.webp
Binary file not shown.
Binary file added
BIN
+3.67 KB
packages/docs/static/video/placeholders/ide_screen_recording_placeholder.webp
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters