diff --git a/qgis-app/plugins/templates/plugins/plugin_detail.html b/qgis-app/plugins/templates/plugins/plugin_detail.html
index 2448114e..eee2d048 100644
--- a/qgis-app/plugins/templates/plugins/plugin_detail.html
+++ b/qgis-app/plugins/templates/plugins/plugin_detail.html
@@ -41,7 +41,7 @@
});
// Handle URL anchor for tabs
- $(window).load(function() {
+ $(function() {
// Store the current scroll position
var scrollPosition = 0;
diff --git a/qgis-app/plugins/templates/plugins/plugin_form.html b/qgis-app/plugins/templates/plugins/plugin_form.html
index 86edcd27..736635f5 100644
--- a/qgis-app/plugins/templates/plugins/plugin_form.html
+++ b/qgis-app/plugins/templates/plugins/plugin_form.html
@@ -1,7 +1,7 @@
{% extends 'plugins/plugin_base.html' %}{% load static i18n %}
{% block extrajs %}
{{ block.super }}
-
+