From f81c148220785661b02dc1396c18022369369cd6 Mon Sep 17 00:00:00 2001 From: Taka Date: Sat, 26 Jan 2019 09:19:16 +0000 Subject: [PATCH] Preload the flag images after the page has finished loading. --- vasl_templates/webapp/static/main.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vasl_templates/webapp/static/main.js b/vasl_templates/webapp/static/main.js index e3e85b6..3c1ff49 100644 --- a/vasl_templates/webapp/static/main.js +++ b/vasl_templates/webapp/static/main.js @@ -495,6 +495,12 @@ function update_page_load_status( id ) } ).fail( function( xhr, status, errorMsg ) { showErrorMsg( "Can't get the startup messages:
" + escapeHTML(errorMsg) + "
" ) ; } ) ; + // preload the flag images (so that the player droplist renders immediately) + for ( var nat in gTemplatePack.nationalities ) { + $("body").append( $( + "" + ) ) ; + } } }