Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4879760

Browse files
tacaswellMeeseeksDev[bot]
authored andcommitted
Backport PR #15649: Fix searchindex.js loading when ajax fails (because e.g. CORS in embedded iframes)
1 parent 233da3d commit 4879760

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

doc/_templates/search.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,5 @@ <h2>{{ _('Search Results') }}</h2>
4141
{% endblock %}
4242
{% block footer %}
4343
{{ super() }}
44-
<script type="text/javascript">
45-
jQuery(function() { Search.loadIndex("searchindex.js"); });
46-
</script>
44+
<script type="text/javascript" src="{{ pathto('searchindex.js', 1) }}" defer></script>
4745
{% endblock %}

0 commit comments

Comments
 (0)