bestofjs / javascript-risingstars

:stars: An overview of the JavaScript landscape in 2023: trends about frontend, Node.js, fullstack frameworks, build tools, testing, Vue.js, React, state management...
https://risingstars.js.org
1k stars 56 forks source link

Migrate to Astro #127

Closed michaelrambeau closed 6 months ago

michaelrambeau commented 6 months ago

Goal

Investigate a solution based on Astro framework + htmx to optimize the web performance

Why Astro?

Perf score on PageSped Insights

It looks promising!

image

vercel[bot] commented 6 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
javascript-risingstars ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 16, 2024 1:17am
michaelrambeau commented 6 months ago

Astro version specific features

Dynamic loading with partials and htmx

In order to decrease the volume of the page, we try to load dynamically some parts of the page using Astro partials and htmx library to inject in the page the HTML response.

So we use Astro partials to setup end-points that return HTML content, at run time.

image

Content management with collections

The content collection is used to manage data, inside src/content folder