#7004 Preload html templates in js