From 06d50df10e450af47210422b2d2b5058827cc791 Mon Sep 17 00:00:00 2001
From: ZeroDot1
Date: Sat, 23 Feb 2019 19:37:56 +0100
Subject: [PATCH] Add asynchronous functions to the templates to reduce page
load times.
Asynchronous functions for CSS and JS.
---
share/templates/403.html | 29 +++---
share/templates/404.html | 29 +++---
share/templates/denied.html | 17 ++--
share/templates/receive.html | 10 +--
share/templates/receive_noscript_xss.html | 4 +-
share/templates/send.html | 105 +++++++++++-----------
share/templates/thankyou.html | 39 ++++----
7 files changed, 124 insertions(+), 109 deletions(-)
diff --git a/share/templates/403.html b/share/templates/403.html
index df81f3e7..a084ef48 100644
--- a/share/templates/403.html
+++ b/share/templates/403.html
@@ -1,16 +1,19 @@
-
- OnionShare: 403 Forbidden
-
-
-
-
-
-
-
-
-
-
-
+
+
+ OnionShare: 403 Forbidden
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/share/templates/404.html b/share/templates/404.html
index 264ca517..ad46e28c 100644
--- a/share/templates/404.html
+++ b/share/templates/404.html
@@ -1,16 +1,19 @@
-
- OnionShare: 404 Not Found
-
-
-
-
-
-
-
-
-
-
-
+
+
+ OnionShare: 404 Not Found
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/share/templates/denied.html b/share/templates/denied.html
index 5d411d62..94fb379b 100644
--- a/share/templates/denied.html
+++ b/share/templates/denied.html
@@ -1,10 +1,13 @@
-
- OnionShare
-
-
-
- OnionShare download in progress
-
+
+
+ OnionShare
+
+
+
+
+ OnionShare download in progress
+
+
diff --git a/share/templates/receive.html b/share/templates/receive.html
index a557a967..a114e0b1 100644
--- a/share/templates/receive.html
+++ b/share/templates/receive.html
@@ -2,8 +2,8 @@
OnionShare
-
-
+
+
@@ -49,10 +49,10 @@
to Standard or
turn off your Tor Browser's NoScript XSS setting.
-
+
-
-
+
+
diff --git a/share/templates/receive_noscript_xss.html b/share/templates/receive_noscript_xss.html
index bf846b03..f6a959c8 100644
--- a/share/templates/receive_noscript_xss.html
+++ b/share/templates/receive_noscript_xss.html
@@ -2,8 +2,8 @@
OnionShare
-
-
+
+
diff --git a/share/templates/send.html b/share/templates/send.html
index e7e1fde0..72342224 100644
--- a/share/templates/send.html
+++ b/share/templates/send.html
@@ -1,56 +1,59 @@
-
- OnionShare
-
-
-
-
-
-
-
-
-
- - Total size: {{ filesize_human }} {% if is_zipped %} (compressed){% endif %}
- {% if slug %}
- - Download Files
- {% else %}
- - Download Files
- {% endif %}
-
-
-
- OnionShare
-
+
+ OnionShare
+
+
+
+
+
+
+
+
+
+
+
+ - Total size: {{ filesize_human }} {% if is_zipped %} (compressed){% endif %}
+ {% if slug %}
+ - Download Files
+ {% else %}
+ - Download Files
+ {% endif %}
+
+
+
+ OnionShare
+
+
+
+
+
+
+ |
+
+ {% for info in file_info.dirs %}
+
+
+
+ {{ info.basename }}
+ |
+ {{ info.size_human }} |
+ |
+
+ {% endfor %}
+ {% for info in file_info.files %}
+
+
+
+ {{ info.basename }}
+ |
+ {{ info.size_human }} |
+ |
+
+ {% endfor %}
+
+
+
-
-
-
-
- |
-
- {% for info in file_info.dirs %}
-
-
-
- {{ info.basename }}
- |
- {{ info.size_human }} |
- |
-
- {% endfor %}
- {% for info in file_info.files %}
-
-
-
- {{ info.basename }}
- |
- {{ info.size_human }} |
- |
-
- {% endfor %}
-
-
-
diff --git a/share/templates/thankyou.html b/share/templates/thankyou.html
index 64c8b369..e1a94784 100644
--- a/share/templates/thankyou.html
+++ b/share/templates/thankyou.html
@@ -1,22 +1,25 @@
-
- OnionShare is closed
-
-
-
-
-
-
- OnionShare
-
-
-
-
-
-
You may now close this window.
-
-
-
+
+ OnionShare is closed
+
+
+
+
+
+
+
+ OnionShare
+
+
+
+
+
+
+
You may now close this window.
+
+
+
+