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

Support more granular page compilations #373

Open
bitspittle opened this issue Nov 10, 2023 · 0 comments
Open

Support more granular page compilations #373

bitspittle opened this issue Nov 10, 2023 · 0 comments
Labels
enhancement New feature or request maybe For issues that may not be worth pursuing

Comments

@bitspittle
Copy link
Collaborator

Per file compilation is now available with kotlin 1.9.20
Would be interesting to see if we can get webpack (or vite?) to use this to bundle pages separately

perfilecompilation

Some ideas with this as a foundation:

  • something like next.js prefetching when you visit a page, so individual pages are smaller but you can still get the effect of instant navigation if you click on something that was already fetched.
  • Break up a site into several subsections, and group pages together. This could help a project scale better if you can put common pages in one group and leave uncommon pages in another group.
  • Have all the pages be grouped into one bundle but separate out the kotlin stdlib and kobweb parts. This might play well with caching, where a user can add new pages over time, but browsers will still have an old valid copy of the kobweb stdlib js output around.
@bitspittle bitspittle added enhancement New feature or request maybe For issues that may not be worth pursuing labels Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request maybe For issues that may not be worth pursuing
Projects
None yet
Development

No branches or pull requests

1 participant