shift72 / kibble

Apache License 2.0
2 stars 1 forks source link

Meta Html Loader #11

Open gscragg opened 7 years ago

gscragg commented 7 years ago

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:

  1. A single endpoint that takes 1 or more slugs: /meta/v1/render?items=/film/49,/film/47.
  2. 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.

sarge commented 7 years ago

Agreed let's see if http2 can help us