diff --git a/res/template/file_viewer.html b/res/template/file_viewer.html
index 25a963a..059dfe4 100644
--- a/res/template/file_viewer.html
+++ b/res/template/file_viewer.html
@@ -279,11 +279,14 @@
{{template `TextViewer.js`}}
{{template `FileViewer.js`}}
- // This info gets filled in on the server side to prevent having to make an API call right after the page loads.
- // Just to slice another few milliseconds from the load time :)
- window.addEventListener("load", function(){
- new Viewer('{{.Other.Type}}', '{{.Other.ViewToken}}', {{.Other.APIResponse}});
- });
+ // DOMContentLoaded fires when the DOM tree has been parsed, but
+ // before the assets have loaded
+ window.addEventListener("DOMContentLoaded", () => {
+ // This info gets filled in on the server side to prevent having to
+ // make an API call right after the page loads. Just to slice
+ // another few milliseconds from the load time :)
+ new Viewer('{{.Other.Type}}', '{{.Other.ViewToken}}', {{.Other.APIResponse}})
+ })
{{template "analytics"}}
@@ -292,13 +295,17 @@
{{ if eq .Other.AdType 5 }}
- {{ else if eq .Other.AdType 7}}
+ {{ else if eq .Other.AdType 7 }}
{{ end }}
{{ end }}
diff --git a/res/template/home.html b/res/template/home.html
index 2736c6f..19bdce7 100644
--- a/res/template/home.html
+++ b/res/template/home.html
@@ -125,6 +125,37 @@
+
+ Hello! Due to + an ice storm in Oregon + the datacenter where pixeldrain is hosted in North America + was cut off from the internet and has lost power. This + caused an outage of a few hours yesterday (it happened when + I was out ice skating). +
++ I am now redirecting all American (north and south) traffic + to the UK, the server there has more than enough capacity to + handle it all. Due to the long distance the website might + feel a bit slower. +
++ Files which were uploaded to the server in Oregon shortly + before the outage will not be available until the server is + back up. Normally all files are backed up in Finland, but + this process takes a while. Due to the abruptness of the + outage a lot of files could not make it over. When the + server comes back online your files will be downloadable + again. +
++ I will post updates on Twitter when the situation changes. +
+