Browse Source

Workaround: index.html: remove image preload

Related to https://github.com/searxng/searxng/issues/1326

URL for the logo is referenced twice:
* in index.html for preloading: it contains the hash for cache busting (when static_use_hash: true)
* in searxng.min.css: to actually display the image. The URL doesn't contain the hash.

So the image preload actually loads twice the same image.

This commit removed the image preloading.
This is workaround: the real fix is to be able to use the URL with the hash in the CSS.
Alexandre Flament 2 years ago
parent
commit
0539e38309
1 changed files with 0 additions and 3 deletions
  1. 0 3
      searx/templates/simple/index.html

+ 0 - 3
searx/templates/simple/index.html

@@ -1,8 +1,5 @@
 {% extends "simple/base.html" %}
 {% from 'simple/icons.html' import icon_big %}
-{% block meta %}
-	<link rel="preload" href="{{ url_for('static', filename='img/searxng.png') }}" as="image" />
-{% endblock %}
 {% block content %}
 <div class="index">
     <div class="title"><h1>SearXNG</h1></div>