What do you guys do when you have a multiple page ...
# javascript
c
What do you guys do when you have a multiple page website using Kotlin/JS, do you determine which page it's on to figure out which code to use or do you somehow make multiple scripts?
r
Kotlin/JS is not a good solution for multiple pages websites. It's better to be used for SPA (single page applications). The main issue is the size of the JS bundle, which would need to be loaded on every page.
✔️ 3
c
Alright, thank you
l
You may want to look at libraries like htmx and hotwire though. They can be very effectively used with a kotlin backend that renders html.