From c0844eb0a59a37f4a4872017c5d95b856f4bd5f6 Mon Sep 17 00:00:00 2001 From: hotbees <78449839+hotbees@users.noreply.github.com> Date: Thu, 11 Jun 2026 14:07:26 -0400 Subject: [PATCH] [HTML Report] Reduce report load time by deferring collapsed section parsing (#11495) * [HTML Report] Render Raid DPS chart early render the main raid DPS chart early so that it doesn't take forever to appear on large reports. motivated by full raid sim stacks like are published on simulationcraft.org * [HTML Report] Emit grouping classes by default the section-open / grouped-first / grouped-last classes that separate and round the report's sections were only applied by `validate_section()` on document.ready, causing a noticable layout shift when they snap apart on larger (longer-loading) reports. instead, we include them directly on the sections we know will be present: section-open for the default-open sections (raid summary and profile sets), grouped-first for hotfixes and grouped-last for the table of contents. this makes the styling and layout mostly correct before document.ready, improving the feel on larger reports. * [HTML Report] Emit `section-open` for main actor of single actor reports * [HTML Report] Defer actor subsection loading A significant portion of page load time on larger reports is spent parsing HTML and building the DOM. By enclosiong heavier per-actor subsections (Abilities, Buffs, Procs/Uptimes/Benefits, Resources, Action Priority List, Statistics & Data Analysis, Stats, Gear, Profile, Talents (multi-player only), Parsed Player Effects) in `\n"; os << "\n" << "\n\n"; } diff --git a/engine/report/report_html_sim.cpp b/engine/report/report_html_sim.cpp index 32dac66b791..fd0b58d94ab 100644 --- a/engine/report/report_html_sim.cpp +++ b/engine/report/report_html_sim.cpp @@ -58,7 +58,7 @@ void print_html_contents( report::sc_html_stream& os, const sim_t& sim ) } } - os << "