From 9fc75c3cefa1f17035695594f89a2535a9d40527 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 22 Oct 2024 13:53:45 +0100 Subject: [PATCH] Preload banner image on person options screen --- webapp_person_options.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/webapp_person_options.py b/webapp_person_options.py index c9a84d866..212b49bbe 100644 --- a/webapp_person_options.py +++ b/webapp_person_options.py @@ -250,16 +250,18 @@ def html_person_options(default_timeline: str, ' ' + translate['Donate'] + '\n' + banner_file, _ = \ + get_banner_file(base_dir, nickname, domain, theme) + banner_path = '/users/' + nickname + '/' + banner_file + instance_title = \ get_config_param(base_dir, 'instanceTitle') - preload_images = [] + preload_images = [banner_path] options_str = \ html_header_with_external_style(css_filename, instance_title, None, preload_images) # show banner - banner_file, _ = \ - get_banner_file(base_dir, nickname, domain, theme) back_path = '/' if nickname: back_path = '/users/' + nickname + '/' + default_timeline @@ -277,7 +279,7 @@ def html_person_options(default_timeline: str, options_str += \ '\n' + \ + 'src="' + banner_path + '" />\n' + \ '\n

\n' nav_links = {}