1. Module bundling added to reduce server calls as each file was taking ~440 ms to load on public server.\n2. JavaScript lib files refactored with OOP for use with module bundling.
This commit is contained in:
@@ -3,10 +3,10 @@
|
||||
{% extends 'layouts/layout.html' %}
|
||||
|
||||
{% block page_body %}
|
||||
<!-- Include Stylesheet -->
|
||||
<!-- Include Stylesheet
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/sections/user.css') }}" />
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/pages/user.css') }}" />
|
||||
|
||||
-->
|
||||
<!-- HTML content -->
|
||||
<div>
|
||||
{% set firstname = 'new user' if user.firstname is none else user.firstname %}
|
||||
@@ -15,9 +15,10 @@
|
||||
{% include 'components/common/buttons/_buttons_save_cancel.html' %}
|
||||
</div>
|
||||
|
||||
<!-- Include JavaScript -->
|
||||
<!-- Include JavaScript
|
||||
<script type="module" src="{{ url_for('static', filename='js/sections/user.js') }}"></script>
|
||||
<script type="module" src="{{ url_for('static', filename='js/pages/user.js') }}"></script>
|
||||
-->
|
||||
|
||||
<!--
|
||||
<script>
|
||||
|
||||
Reference in New Issue
Block a user