diff --git a/src/main/content/_assets/js/builds.js b/src/main/content/_assets/js/builds.js index 81ce6a24a8..5483232b6c 100644 --- a/src/main/content/_assets/js/builds.js +++ b/src/main/content/_assets/js/builds.js @@ -1560,6 +1560,19 @@ $(document).ready(function () { } }) + $.ajax({ + url: starter_plugin_url, + type: 'GET', + dataType: 'json', + success: function(data) { + $('#maven_version').text(data.mavenVersion); + $('#gradle_version').text(data.gradleVersion); + }, + error: function(error) { + console.error('Error fetching Maven and Gradle plugin versions:', error); + } + }); + $(window).on('scroll', function (event) { // start animation if images are in viewport if ($('#bottom_images_container').isInViewport()) { @@ -1597,18 +1610,5 @@ $(window).on('load', function () { }); }); -$(window).on('load', function () { - $.ajax({ - url: starter_plugin_url, - type: 'GET', - dataType: 'json', - success: function(data) { - $('#maven_version').text(data.mavenVersion); - $('#gradle_version').text(data.gradleVersion); - }, - error: function(error) { - console.error('Error fetching Maven and Gradle plugin versions:', error); - } - }); -}); +