Skip to content

Conversation

Munawwar
Copy link
Contributor

@Munawwar Munawwar commented Aug 24, 2025

Implemented router's URL matching logic in multiple (non-JS) languages. Since those languages cannot do SSR / prerendering without a JS engine, they can still do simpler optimizations. Use cases in mind:

  • Preloading of static assets (JS, CSS, images, icons)
  • Early return of 404 page
  • Light SEO: e.g. Move page title tag info etc into a client-side routes file, but yet have it in the HTML loaded from server

@Munawwar Munawwar changed the title Implemented router' URL matching logic in multiple (non-JS) languages Implemented router's URL matching logic in multiple (non-JS) languages Aug 24, 2025
@Munawwar Munawwar marked this pull request as draft August 30, 2025 08:22
@Munawwar Munawwar marked this pull request as ready for review August 30, 2025 14:18
Copy link
Member

@rschristian rschristian left a comment

Choose a reason for hiding this comment

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

This is super freaking cool!

Mind adding a note about this to the root README.md? Just a little link & description to the polyglot-utils/README.md would be great, so users can easily find this from the main repo view.

@rschristian rschristian merged commit 589e11f into preactjs:main Aug 31, 2025
1 check passed
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