/upstream/templates/site
Type: /type/page
body: value: Site template is divided into multiple parts to allow sending some early if possible.

The document is divided into 4 parts: head, neck, body and footer. "Around the Library" formats the global history used in page footers. "Alert" places a pre-formatted message at the top of every page.

**Proposed implementaion:**
In view mode, head is sent first and the rest is sent later. Because of this the browser will start fetching the javascripts and CSS files before the page is rendered, which typically involves couple of  infobase/solr requests for additional data.

For edition, work and author pages, the neck is also sent immediately after head because title of the page can be found easily without rendering the page.

The site template is written in such a way that if head/neck is sent, it will not try to include it again when it is rendered.

{{PageList("/upstream/templates/site")}}
title: Site Template Helpers