Sunil Mohan Adapa c45bdf56dd
ui: js: Load all JS files in deferred mode to speed up page load
- This improves page rendering time. If JS files are not loaded in deferred or
async mode, they will halt the page rendering until JS files are loaded from
network.

- 'defer' mode guarantees that the load order is same as the order in which JS
files appeared in the HTML page.

Tests:

- Run at least one function of each affected JS file and ensure that is works.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2025-01-07 12:08:51 +02:00

38 lines
1020 B
HTML

{% extends "app.html" %}
{% comment %}
# SPDX-License-Identifier: AGPL-3.0-or-later
{% endcomment %}
{% load bootstrap %}
{% load i18n %}
{% load static %}
{% block page_js %}
<script type="text/javascript" src="{% static 'ejabberd/ejabberd.js' %}"
defer></script>
{% endblock %}
{% block status %}
{{ block.super }}
<h3>{% trans "Status" %}</h3>
<p>
{% url 'names:index' as names_url %}
{% if domain_name %}
{% blocktrans trimmed with domain_name=domain_name %}
Your XMPP server domain is set to <b>{{ domain_name }}</b>. User
IDs will look like <i>username@{{ domain_name }}</i>. You
can setup your domain on the system
<a href="{{ names_url }}">Name Services</a> page.
{% endblocktrans %}
{% else %}
{% blocktrans trimmed %}
Your XMPP server domain is not set. You can setup your domain on the
system <a href="{{ names_url }}">Name Services</a> page.
{% endblocktrans %}
{% endif %}
</p>
{% endblock %}