mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-21 21:22:11 -03:00
refactor(preload): remove unnecessary preload blocks from multiple templates
This commit is contained in:
@@ -12,14 +12,6 @@
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/loras_static/images/favicon-16x16.png">
|
||||
<link rel="manifest" href="/loras_static/images/site.webmanifest">
|
||||
|
||||
<!-- 预加载关键资源 -->
|
||||
<link rel="preload" href="/loras_static/css/style.css" as="style">
|
||||
{% block preload %}{% endblock %}
|
||||
|
||||
<!-- 优化字体加载 -->
|
||||
<link rel="preload" href="/loras_static/vendor/font-awesome/webfonts/fa-solid-900.woff2"
|
||||
as="font" type="font/woff2" crossorigin>
|
||||
|
||||
<!-- 添加性能监控 -->
|
||||
<script>
|
||||
performance.mark('page-start');
|
||||
|
||||
@@ -3,10 +3,6 @@
|
||||
{% block title %}{{ t('checkpoints.title') }}{% endblock %}
|
||||
{% block page_id %}checkpoints{% endblock %}
|
||||
|
||||
{% block preload %}
|
||||
<link rel="preload" href="/loras_static/js/checkpoints.js" as="script" crossorigin="anonymous">
|
||||
{% endblock %}
|
||||
|
||||
{% block init_title %}{{ t('initialization.checkpoints.title') }}{% endblock %}
|
||||
{% block init_message %}{{ t('initialization.checkpoints.message') }}{% endblock %}
|
||||
{% block init_check_url %}/api/checkpoints/list?page=1&page_size=1{% endblock %}
|
||||
|
||||
@@ -3,10 +3,6 @@
|
||||
{% block title %}{{ t('embeddings.title') }}{% endblock %}
|
||||
{% block page_id %}embeddings{% endblock %}
|
||||
|
||||
{% block preload %}
|
||||
<link rel="preload" href="/loras_static/js/embeddings.js" as="script" crossorigin="anonymous">
|
||||
{% endblock %}
|
||||
|
||||
{% block init_title %}{{ t('initialization.embeddings.title') }}{% endblock %}
|
||||
{% block init_message %}{{ t('initialization.embeddings.message') }}{% endblock %}
|
||||
{% block init_check_url %}/api/embeddings/list?page=1&page_size=1{% endblock %}
|
||||
|
||||
@@ -3,12 +3,6 @@
|
||||
{% block title %}{{ t('header.appTitle') }}{% endblock %}
|
||||
{% block page_id %}loras{% endblock %}
|
||||
|
||||
{% block preload %}
|
||||
{% if not is_initializing %}
|
||||
<link rel="preload" href="/loras_static/js/loras.js" as="script" crossorigin="anonymous">
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block init_title %}{{ t('initialization.loras.title') }}{% endblock %}
|
||||
{% block init_message %}{{ t('initialization.loras.message') }}{% endblock %}
|
||||
{% block init_check_url %}/api/loras/list?page=1&page_size=1{% endblock %}
|
||||
|
||||
@@ -9,10 +9,6 @@
|
||||
<link rel="stylesheet" href="/loras_static/css/components/import-modal.css">
|
||||
{% endblock %}
|
||||
|
||||
{% block preload %}
|
||||
<link rel="preload" href="/loras_static/js/recipes.js" as="script" crossorigin="anonymous">
|
||||
{% endblock %}
|
||||
|
||||
{% block additional_components %}
|
||||
{% include 'components/import_modal.html' %}
|
||||
{% include 'components/recipe_modal.html' %}
|
||||
|
||||
@@ -3,12 +3,6 @@
|
||||
{% block title %}{{ t('statistics.title') }} - {{ t('header.appTitle') }}{% endblock %}
|
||||
{% block page_id %}statistics{% endblock %}
|
||||
|
||||
{% block preload %}
|
||||
{% if not is_initializing %}
|
||||
<link rel="preload" href="/loras_static/js/statistics.js" as="script" crossorigin="anonymous">
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block head_scripts %}
|
||||
<!-- Add Chart.js for statistics page -->
|
||||
<script src="/loras_static/vendor/chart.js/chart.umd.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user