Commit a4ed535b authored by Théo Labetowiez's avatar Théo Labetowiez

core: optimisation and take off the auto-download of Font Awesome

parent 3548c3e7
Pipeline #1751 passed with stage
in 15 minutes and 11 seconds
......@@ -10,12 +10,8 @@
<link rel="stylesheet" href="{{ static('ajax_select/css/ajax_select.css') }}">
<link rel="stylesheet" href="{{ scss('core/style.scss') }}">
<link rel="stylesheet" href="{{ static('core/js/ui/jquery-ui.min.css') }}">
{% if settings.EXTERNAL_RES %}
<noscript><link rel="stylesheet" href="/static/core/font-awesome/css/font-awesome.min.css"></noscript>
<script href="/core/static/core/font-awesome/js/fontawesone.min.js"></script>
{% else %}
<link rel="stylesheet" href="{{ static('core/font-awesome/css/font-awesome.min.css') }}">
{% endif %}
<link rel="stylesheet" href="/static/core/font-awesome/css/font-awesome.min.css">
<script href="/core/static/core/font-awesome/js/fontawesone.min.js"></script>
<!-- Jquery declared here to be accessible in every django widgets -->
<script src="{{ static('core/js/jquery-3.1.0.min.js') }}"></script>
......
......@@ -28,6 +28,7 @@
var easymde = new EasyMDE({
element: document.getElementById("{{ widget.attrs.id }}"),
spellChecker: false,
autoDownloadFontAwesome: false,
previewRender: function(plainText, preview){ // Async method
clearTimeout(lastAPICall);
lastAPICall = setTimeout(function (plainText, preview){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment