Skip to content

Conversation

@rschristian
Copy link
Member

Some minor things that I've been carrying in my git stash for too long

@github-actions
Copy link

github-actions bot commented Oct 10, 2025

Size Change: -521 B (-0.12%)

Total Size: 449 kB

Filename Size Change
build/assets/index-********.js 32.8 kB -353 B (-1.06%)
build/assets/index-********.css 9.68 kB -168 B (-1.71%)
ℹ️ View Unchanged
Filename Size Change
build/assets/blog-page-********.js 255 B +1 B (+0.39%)
build/assets/docsearch-********.js 28.9 kB 0 B
build/assets/errors-********.js 342 B 0 B
build/assets/repl-********.css 1.51 kB 0 B
build/assets/repl-********.js 148 kB 0 B
build/assets/repl-page-********.js 7.65 kB 0 B
build/assets/repl.worker-********.js 213 kB 0 B
build/assets/style-********.css 3.07 kB 0 B
build/assets/style.module-********.js 159 B 0 B
build/assets/tutorial-page-********.js 1.99 kB -1 B (-0.05%)
build/assets/tutorial-page-********.css 1.76 kB 0 B

compressed-size-action

Comment on lines -87 to -100
{hasNav && (
<div class={style.nextWrapper}>
{props.prev ? (
<SiblingNav start lang={props.lang} route={props.prev} />
) : (
<span />
)}
{props.next ? (
<SiblingNav lang={props.lang} route={props.next} />
) : (
<span />
)}
</div>
)}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created in #650 but removed at some point, this is all unused.

Comment on lines +3 to +20
const LOGOS = [
{
name: 'logo-text',
alt: 'Full Logo'
},
{
name: 'logo-text-inverted',
alt: 'Full Logo with Inverted Colors'
},
{
name: 'symbol',
alt: 'Preact Symbol'
},
{
name: 'symbol-inverted',
alt: 'Preact Symbol with Inverted Colors'
}
];
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No idea why past me hoisted this into the app config, that was silly. It's only ever used here, no need for that to be accessible app-wide.

@rschristian rschristian marked this pull request as ready for review October 18, 2025 23:26
},
image({ href, text }) {
return `<img decoding="async" src="${href}" alt="${text}" />`;
return `<img loading="lazy" decoding="async" src="${href}" alt="${text}" />`;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have many pages with images but this seems like a no-brainer. Was copied here from content-region last year, didn't have lazy loading set there either. Dunno why.

* Button that expands into a menu when clicked. Pass in label & menu items as children.
*
* @param {ExpandableNavLinkProps & import('preact').JSX.ButtonHTMLAttributes} props
* @param {ExpandableNavLinkProps & import('preact').ButtonHTMLAttributes} props
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Broken when we upgraded to Preact v11 here.


/**
* @param {NavLinkProps & import('preact').AnchorHTMLAttributes} props
* @param {NavLinkProps & Omit<import('preact').AnchorHTMLAttributes, 'role'>} props
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants