Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: migrate from astro to svelte + vite to improve performance #131

Merged
merged 24 commits into from
Jan 3, 2023

Conversation

matschik
Copy link
Owner

@matschik matschik commented Dec 31, 2022

Component Party has grown very fast since its first release. There has been a big impact on the performance of the page.
The solution is to go from full static with Astro (30 000 DOM Nodes) to a Svelte SPA to greatly improve performance:

  • JS will contain DOM Nodes not displayed
  • Framework snippets will be downloaded on demand (lazy loading)

Capture d’écran 2022-12-31 à 09 29 11
Capture d’écran 2022-12-31 à 09 29 03

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Dec 31, 2022

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0262d0f
Status: ✅  Deploy successful!
Preview URL: https://d64d9f43.component-party.pages.dev
Branch Preview URL: https://next.component-party.pages.dev

View logs

@matschik
Copy link
Owner Author

The performance seems much better ! 💯
https://next.component-party.pages.dev/

Capture d’écran 2022-12-31 à 15 04 50

@matschik
Copy link
Owner Author

matschik commented Jan 1, 2023

Last things to do to replace Component Party v1:

  • Add Angular code highlighting on template part
  • Fix linting for content files
  • Add missing snippet case

@matschik matschik marked this pull request as ready for review January 3, 2023 00:28
@matschik matschik merged commit be52cbc into main Jan 3, 2023
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.

1 participant