Module bundling improved to reduce number of requests to 1 JavaScript and 1 CSS file per webpage excl. external resources such as Recaptcha

This commit is contained in:
2024-09-13 23:26:37 +01:00
parent 0c88f161c3
commit d858f47ef5
1490 changed files with 45316 additions and 1372 deletions

View File

@@ -7,6 +7,7 @@
<link rel="stylesheet" href="{{ url_for('static', filename='css/sections/core.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/pages/core/admin_home.css') }}">
-->
<link rel="stylesheet" href="{{ url_for('static', filename='dist/css/core_admin_home.css') }}">
<!-- HTML content -->
<div class="{{ model.FLAG_CARD }} {{ model.FLAG_ROW }}">

View File

@@ -7,8 +7,18 @@
<link rel="stylesheet" href="{{ url_for('static', filename='css/sections/core.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/pages/core/contact.css') }}">
-->
<link rel="stylesheet" href="{{ url_for('static', filename='dist/css/core_contact.css') }}">
<script src="https://www.google.com/recaptcha/enterprise.js?render=6Lf8Q8cpAAAAAFAawGu4-ma60bvbEixNVTVvRzKe"></script> <!-- reCaptcha Integration -->
<script>
function loadRecaptcha() {
var script = document.createElement('script');
script.src = "https://www.google.com/recaptcha/enterprise.js?render=6Lf8Q8cpAAAAAFAawGu4-ma60bvbEixNVTVvRzKe";
script.async = true;
document.body.appendChild(script);
}
window.addEventListener('load', loadRecaptcha);
</script>
<!-- HTML content -->
<div class="card">

View File

@@ -7,6 +7,7 @@
<link rel="stylesheet" href="{{ url_for('static', filename='css/sections/core.css') }}" />
<link rel="stylesheet" href="{{ url_for('static', filename='css/pages/core/home.css') }}" />
-->
<link rel="stylesheet" href="{{ url_for('static', filename='dist/css/core_home.css') }}">
<!-- HTML content -->
<div>

View File

@@ -9,6 +9,7 @@
<link rel="stylesheet" href="{{ url_for('static', filename='css/sections/core.css') }}" />
<link rel="stylesheet" href="{{ url_for('static', filename='css/pages/core/services.css') }}" />
-->
<link rel="stylesheet" href="{{ url_for('static', filename='dist/css/core_services.css') }}">
<!-- HTML content -->
<div class="{{ model.FLAG_CARD }}">