-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #693 from Natay/master
page speed increased
- Loading branch information
Showing
18 changed files
with
129 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,26 @@ | ||
{% extends "forum_base.html" %} | ||
{% load static %} | ||
{% load accounts_tags %} | ||
{% load forum_tags %} | ||
{% block headtitle %}{{ target.profile.name }}{% endblock %} | ||
|
||
|
||
{% block head %} | ||
<script async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js" id="MathJax-script"></script> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | ||
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script> | ||
<link disabled rel="stylesheet" href="//cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/styles/default.min.css"> | ||
<script async src="//cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/highlight.min.js"></script> | ||
{% endblock %} | ||
|
||
{% block js %} | ||
|
||
<script src="{% static 'semantic.min.js' %}"></script> | ||
<script src="{% static 'prism.js' %}"></script> | ||
<script src="{% static 'setup.js' %}{% randparam %}"></script> | ||
<script src="{% static 'forum.js' %}{% randparam %}"></script> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
|
||
<div class="ui stackable three column grid profile" data-value="{{ target.profile.id }}"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{% extends 'forum_list.html' %} | ||
{% load static %} | ||
{% load forum_tags %} | ||
|
||
{% block head %} | ||
<script async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js" id="MathJax-script"></script> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | ||
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script> | ||
<link disabled rel="stylesheet" href="//cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/styles/default.min.css"> | ||
<script async src="//cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/highlight.min.js"></script> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,13 +18,9 @@ | |
{% block favicon %} | ||
<link rel="icon" href="{% static 'forum_favicon.ico' %}" type="image/x-icon"/> | ||
{% endblock %} | ||
{# Load JQuery. #} | ||
|
||
<script defer src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | ||
<script defer src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script> | ||
<link disabled rel="stylesheet" href="//cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/styles/default.min.css"> | ||
|
||
<script defer src="//cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/highlight.min.js"></script> | ||
{# Optional block header content. #} | ||
{% block head %} | ||
{% endblock %} | ||
|
||
{# Google tracker injected if it exists in the context. Set in the django settings. #} | ||
{% if google_tracker %} | ||
|
@@ -43,6 +39,7 @@ | |
</script> | ||
|
||
{% endif %} | ||
{# <script async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js" id="MathJax-script"></script>#} | ||
|
||
<script> | ||
MathJax = { | ||
|
@@ -54,50 +51,30 @@ | |
} | ||
}; | ||
</script> | ||
{% comment %} | ||
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js" id="MathJax-script"></script> | ||
{% endcomment %} | ||
|
||
{# Load recaptcha #} | ||
{% recaptcha_init %} | ||
{#% recaptcha_init %#} | ||
|
||
{# CSS compression. #} | ||
{% compress css %} | ||
{% compress css inline %} | ||
<link href="{% static 'semantic.min.css' %}" rel="stylesheet"> | ||
{# Preload key requests #} | ||
<link rel="preload" as="font" type="font/woff" href="{% static 'themes/default/assets/fonts/icons.woff' %}" | ||
crossorigin="anonymous"> | ||
<link rel="preload" as="font" type="font/woff" href="{% static 'themes/default/assets/fonts/icons.woff2' %}" | ||
crossorigin="anonymous"> | ||
<link rel="preload" as="font" type="font/woff" | ||
href="{% static 'themes/default/assets/fonts/outline-icons.woff2' %}" | ||
crossorigin="anonymous"> | ||
<link rel="preload" as="font" type="font/woff" | ||
href="{% static 'themes/default/assets/fonts/outline-icons.woff' %}" | ||
crossorigin="anonymous"> | ||
|
||
<link href="{% static 'prism.css' %}" rel="stylesheet" media="print"> | ||
<link href="{% static 'prism.css' %}" rel="stylesheet"> | ||
<link href="{% static 'forum.css' %}{% randparam %}" rel="stylesheet"> | ||
{% block cssfile %} | ||
{% endblock %} | ||
|
||
{% endcompress %} | ||
|
||
{# Javascript compression. #} | ||
{% compress js %} | ||
<script src="{% static 'semantic.min.js' %}"></script> | ||
<script defer src="{% static 'prism.js' %}"></script> | ||
<script src="{% static 'forum.js' %}{% randparam %}"></script> | ||
<script src="{% static 'setup.js' %}{% randparam %}"></script> | ||
{% compress js inline %} | ||
|
||
{% block jsfile %} | ||
{% endblock %} | ||
|
||
{% endcompress %} | ||
|
||
{# Optional block header content. #} | ||
{% block head %} | ||
|
||
{% endblock %} | ||
|
||
{# Optional css header content. #} | ||
{% block css %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.