I have created the library component but it requires an API/endpoint to load a number of films/seasons rendered html pieces into a div.
I guess we have 2 approaches here:
A single endpoint that takes 1 or more slugs: /meta/v1/render?items=/film/49,/film/47.
An endpoint per item: /meta/v1/render/film/49.
The first option means a single http request per page load, but its not easily cacheable.
The second means any number of requests per page load, but they are cacheable across the entire site (not just for the current user).
http2 might mean the second option isnt as bad as the first option.
I have created the
library
component but it requires an API/endpoint to load a number of films/seasons rendered html pieces into a div.I guess we have 2 approaches here:
/meta/v1/render?items=/film/49,/film/47
./meta/v1/render/film/49
.The first option means a single http request per page load, but its not easily cacheable. The second means any number of requests per page load, but they are cacheable across the entire site (not just for the current user).
http2 might mean the second option isnt as bad as the first option.