Refactor `layout.js` to improve section loading performance: - Removed unused sections from the `sections` map. - Introduced `sectionCache` to store loaded sections. - Created a reusable `#section-container` element for managing section DOM nodes. - Implemented lazy loading with a loading placeholder and show/hide logic for cached sections. - Optimized CSS handling by reusing existing stylesheet links instead of removing and recreating them. - Added safeguards to avoid reloading already‑loaded JS modules. |
||
|---|---|---|
| .. | ||
| desktop | ||
| html | ||