I have this issue hope you have some idea how to solve it. In a Django templates which is not a "child" template of base template, I would like to use javascript modules which are in the base template, i.e. Jquery. Is there a way to achieve this without load again all javascript libraries I need?
Lets say base.html
{% block js %}
<script src="some/path/to/jquery.js"></script>
{% endblock $}
some_component_base_template.html
// Not inherited from base.html
{% block somejsblock %}
<script>
$(document).ready(function(
//some code I need
))
</script>
{% endblock %}
This block of html can be inserted anywhere in the template by user via slots mechanisms, this is why it doesn't inherit from base.html, if I create another header, every time that this block of html is loaded, javascripts are going to be loaded too.