aboutsummaryrefslogtreecommitdiffstats
path: root/templates/main
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-06-13 16:43:42 +0100
committerGravatar Gareth Coles <[email protected]>2018-06-13 16:43:42 +0100
commitbe2bbe35cf49763ad0258c005f3cbdddd7a21d75 (patch)
tree962d5e52f4bb57c397c068ae6a11b57952cfc459 /templates/main
parent[DB] Attempt reconnection if current connection was lost (diff)
Compile as much JS with Gulp as possible
This will concatenate ALL of our JS, and minify it - thus leaving us with a single file to be loaded. There's a few libraries we can't do this with, unfortunately - these are now added in fouc.js: * Ace Editor * Flatpickr * Font-Awesome
Diffstat (limited to 'templates/main')
-rw-r--r--templates/main/base.html9
-rw-r--r--templates/main/jams/profile.html5
2 files changed, 1 insertions, 13 deletions
diff --git a/templates/main/base.html b/templates/main/base.html
index 9c58fefa..bb12fc9b 100644
--- a/templates/main/base.html
+++ b/templates/main/base.html
@@ -6,12 +6,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
- <!-- Prevent Flash of Unstyled Content -->
- <script src="{{ static_file('js/fouc.js') }}"></script>
-
- <!-- Other JS loads -->
- <script src="https://cdnjs.cloudflare.com/ajax/libs/uikit/3.0.0-beta.39/js/uikit.min.js"></script>
- <script src="https://cdn.jsdelivr.net/npm/flatpickr"></script>
+ <script src="{{ static_file('js/script.js') }}" type="application/javascript"></script>
<!-- Stylesheets -->
<link rel="shortcut icon" href="{{ static_file('favicon.ico') }}">
@@ -54,7 +49,5 @@
</div>
</div>
</footer>
-
- <script src='{{ static_file('js/countdown.js') }}'></script>
</body>
</html>
diff --git a/templates/main/jams/profile.html b/templates/main/jams/profile.html
index 660f1540..40d22490 100644
--- a/templates/main/jams/profile.html
+++ b/templates/main/jams/profile.html
@@ -2,11 +2,6 @@
{% block title %}Code Jams | My Profile{% endblock %}
{% block og_title %}Code Jams | My Profile{% endblock %}
-{% block extra_head %}
- <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.1/moment.min.js" type="application/javascript"></script>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/moment-timezone/0.5.17/moment-timezone.min.js" type="application/javascript"></script>
-{% endblock %}
-
{% block content %}
<div class="uk-section">
<div class="uk-container uk-container-small">