Open mlandauer opened 7 years ago
Another option is for the server to send back to the client (alongside the static html), a command or indication of what data the client needs to load.
Related to #85
Implemented option 3 in https://github.com/mlandauer/thats-camping-elm/commit/fed4b588cdc53670b885e59be644b52dcb7e4e58. Let's see how that works in practise before deciding whether that's good enough and whether to close this ticket.
Now that we have Google indexing https://thatscamping.org it's very likely that a person who's never visited the site before will go directly to a campsite detail page.
Their current experience is:
Obviously a terrible experience.
What would be better is if on a campsite detail page, the campsite data gets loaded as soon as possible. A few different ways that we could do this: