Skip to content

Conversation

@urix
Copy link
Owner

@urix urix commented Oct 13, 2025

Improve page load performance by deferring JavaScript, optimizing images to WebP with lazy loading, and inlining critical CSS.

The JavaScript (stereoh5.js) has been minified and its loading deferred in s.htm using defer and preload attributes. All .jpg images are now served as .webp via <picture> elements, utilizing loading="lazy" and decoding="async" attributes for efficient, on-demand loading. The stereoh5.js script was updated to correctly read currentSrc for compatibility with <picture> elements, and minimal critical CSS was inlined to reduce render-blocking.


Open in Cursor Open in Web

Update HTML to use picture elements and lazy loading.
Update JS to correctly resolve image sources.
Add Terser and Acorn binaries.
Add @img/colour package.

Co-authored-by: urix <urix@me.com>
@cursor
Copy link

cursor bot commented Oct 13, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

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.

3 participants