Removed polyfills for ancient browsers from bundle

This commit is contained in:
squidfunk 2023-02-18 13:04:50 +01:00
parent 9a59060acd
commit e3b1bcf179
13 changed files with 72 additions and 72 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -23,5 +23,5 @@
{% endblock %}
{% block scripts %}
{{ super() }}
<script src="{{ 'assets/javascripts/custom.a7283b5f.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/custom.7c807b8d.min.js' | url }}"></script>
{% endblock %}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -47,7 +47,11 @@
{% endif %}
{% include "partials/icons.html" %}
{% endblock %}
{% block libs %}{% endblock %}
{% block libs %}
{% for path in config.extra.polyfills %}
<script src="{{ path | url }}"></script>
{% endfor %}
{% endblock %}
{% block fonts %}
{% if config.theme.font != false %}
{% set text = config.theme.font.text | d("Roboto", true) %}
@ -240,7 +244,7 @@
</script>
{% endblock %}
{% block scripts %}
<script src="{{ 'assets/javascripts/bundle.2a6f1dda.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.b062512d.min.js' | url }}"></script>
{% for path in config.extra_javascript %}
<script src="{{ path | url }}"></script>
{% endfor %}

View File

@ -39,7 +39,6 @@
"upgrade:install": "npm install"
},
"dependencies": {
"array-flat-polyfill": "^1.0.1",
"clipboard": "^2.0.11",
"escape-html": "^1.0.3",
"focus-visible": "^5.2.0",
@ -47,10 +46,7 @@
"iframe-worker": "^1.0.3",
"lunr": "^2.3.9",
"lunr-languages": "^1.10.0",
"resize-observer-polyfill": "^1.5.1",
"rxjs": "^7.8.0",
"unfetch": "^5.0.0",
"url-polyfill": "^1.1.12"
"rxjs": "^7.8.0"
},
"devDependencies": {
"@fortawesome/fontawesome-free": "^6.3.0",

View File

@ -20,7 +20,6 @@
* IN THE SOFTWARE.
*/
import ResizeObserver from "resize-observer-polyfill"
import {
NEVER,
Observable,

View File

@ -20,10 +20,7 @@
* IN THE SOFTWARE.
*/
import "array-flat-polyfill"
import "focus-visible"
import "unfetch/polyfill"
import "url-polyfill"
import {
EMPTY,

View File

@ -99,7 +99,11 @@
{% endblock %}
<!-- JavaScript libraries -->
{% block libs %}{% endblock %}
{% block libs %}
{% for path in config.extra.polyfills %}
<script src="{{ path | url }}"></script>
{% endfor %}
{% endblock %}
<!-- Webfonts -->
{% block fonts %}