LAZY LOADING

updated a bunch of packages
This commit is contained in:
aronwk-aaron
2023-11-18 00:41:35 -06:00
parent abc8af89c5
commit b9fc039a7e
6 changed files with 192 additions and 80 deletions

View File

@@ -15,8 +15,9 @@
{% include 'partials/_character.html.j2' %}
{% endwith %}
</div>
<div class="col-sm">
{% include 'partials/_charxml.html.j2'%}
<div class="col-sm" id="charxml">
Loading Character Data
{% include 'partials/_loading.html' %}
</div>
</div>
{% endblock content %}
@@ -32,3 +33,14 @@
{% endfor %}
</div>
{% endblock content_after %}
{% block js %}
{{ super() }}
<script>
fetch({{ url_for("characters.chardata", id=character_data.id)|tojson }})
.then(response => response.text())
.then(text => {
setInnerHTML(document.getElementById("charxml"), text);
})
</script>
{% endblock js %}