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
Robert Jaros
12/29/2020, 1:08 PM
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
camdenorrb
12/29/2020, 1:09 PM
Alright, thank you
l
lorefnon
12/31/2020, 10:26 AM
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.