ausocean / cloud

GNU General Public License v3.0
1 stars 1 forks source link

bench: footer should be loaded only once #23

Closed scruzin closed 1 month ago

scruzin commented 1 month ago

The footer is currently read from a static file every time a page is rendered. It should be treated like other templates, and read only once, which will speed up page render time.

scruzin commented 1 month ago

PS In addition to extra latency, App Engine apps reading static files incurs extra bandwidth charges. Static files are pushed out to Google's CDN which means that charges are not incurred when served to end users. When served back to the app though, charges are incurred.

scruzin commented 1 month ago

The footer has now moved to the template directory and is loaded along with all of the other templates.