5 ms·
I’ve occasionally thought of doing SSR but making it possible to server render only a small part of the page in response to an API request and then just use Jav
by fiddlerwoaroof 8y ago
I’ve occasionally thought of doing SSR but making it possible to server render only a small part of the page in response to an API request and then just use JavaScript to swap in the html from the backend.
- fiddlerwoaroof 8y agoYou could use `Accept: text/html` to indicate that an API should return html rather than Json.
- purerandomness 8y agoThis is elegantly implemented by [1]. I love this concept and use it in all my projects. [1] https://intercoolerjs.org/ https://intercoolerjs.org/