Is this code enough to preload images on my website? I use Django template langue for the loop, instead of javascript, like there. Is there any advantage of using javascript? Is my way as good as the javascript way?
{% for marker in markers %}
<img src="{{ marker.image }}" style="display: none"/>
{% endfor %}