Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .jules/bolt.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ This journal documents critical performance learnings for the 5L Labs project.
## 2026-02-22 - Font Loading Optimization
**Learning:** Using `preconnect` for `fonts.gstatic.com` significantly improves FCP by establishing the connection early.
**Action:** Always include `preconnect` links for external font providers in `docusaurus.config.js`.

## 2026-02-22 - Static Image Formats
**Learning:** The Docusaurus React setup efficiently handles direct WebP imports in `src/pages/index.js`, dropping the hero banner LCP image payload by ~85% (233KB -> 35KB) without needing additional Webpack loader configurations.
**Action:** Default to `.webp` formats for large static UI elements (like logos or hero images) rather than `.png`.
236 changes: 110 additions & 126 deletions package-lock.json

Large diffs are not rendered by default.

12 changes: 11 additions & 1 deletion src/components/HomepageContent/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,17 @@ function Section({ title, items }) {
<div style={{ marginBottom: '0.25rem' }}>
<strong>
{item.link ? (
<Link to={item.link} className="inline-flex items-center gap-1 group">
<Link
to={item.link}
className="inline-flex items-center gap-1 group"
{...(isExternal
? {
target: "_blank",
rel: "noopener noreferrer",
"aria-label": `${item.title} (opens in a new tab)`,
}
: {})}
>
{item.title}
{isExternal ? (
<ExternalLinkIcon className="transition-transform group-hover:translate-x-1 group-hover:-translate-y-1 group-focus-visible:translate-x-1 group-focus-visible:-translate-y-1" />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Layout from "@theme/Layout";
import HomepageContent from "../components/HomepageContent";
import styles from "./index.module.css";

import Logo from "@site/static/img/5L_Labs_Logo.png";
import Logo from "@site/static/img/5L_Labs_Logo.webp";

function HomepageHeader() {
const { siteConfig } = useDocusaurusContext();
Expand Down
18 changes: 1 addition & 17 deletions static/img/5L-Labs-Blue.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed static/img/5L_Labs_Logo.png
Binary file not shown.
Binary file added static/img/5L_Labs_Logo.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed static/img/5L_Labs_Logo_old.png
Binary file not shown.
Loading