mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 18:34:02 +00:00
The 92 KB stylesheet was vendored into the main CSS, so every page load
paid for it (render-blocking) although the viewer itself is lazy. It now
comes with the lazy chunk: `import('mapillary-js/dist/mapillary.css')`
next to `import('mapillary-js')`, which Vite applies before the import
resolves, so the viewer is styled from its first frame. Main CSS in a
production build: 386 KB -> 302 KB; the MapillaryJS CSS is its own 84 KB
file. Checked in the dev server that its rules arrive with the viewer.
The vendored copy also named the wrong copyright holder and omitted the
MIT text; it is gone, and THIRD_PARTY_NOTICES.md now records mapillary-js
(MIT, Facebook, Inc. and its affiliates) and its rxjs (Apache-2.0) and
three (MIT) dependencies.
Found in the IC8 review of #768 (P2).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
29 lines
1.1 KiB
CSS
29 lines
1.1 KiB
CSS
/* Preserve component and responsive rule order in one stylesheet entry. */
|
|
@import './src/ui/styles/foundation.css';
|
|
@import './src/ui/styles/controls.css';
|
|
@import './src/ui/styles/location.css';
|
|
@import './src/ui/styles/status.css';
|
|
@import './src/ui/styles/cockpit.css';
|
|
@import './src/ui/styles/overlays.css';
|
|
@import './src/ui/styles/layers.css';
|
|
@import './src/ui/styles/radio.css';
|
|
@import './src/ui/styles/cctv.css';
|
|
@import './src/ui/styles/street-level.css';
|
|
@import './src/ui/styles/scenes.css';
|
|
@import './src/ui/styles/bhote-koshi.css';
|
|
@import './src/ui/styles/recent-imagery.css';
|
|
@import './src/ui/styles/recording.css';
|
|
@import './src/ui/styles/embed.css';
|
|
@import './src/ui/styles/responsive.css';
|
|
@import './src/ui/styles/command-dock.css';
|
|
@import './src/ui/styles/command-dock-compact.css';
|
|
@import './src/ui/styles/command-dock-trays.css';
|
|
@import './src/ui/styles/command-dock-sliding.css';
|
|
@import './src/ui/styles/voice-cost.css';
|
|
@import './src/ui/styles/first-run.css';
|
|
@import './src/ui/styles/provider-settings.css';
|
|
|
|
@import './src/ui/styles/weather.css';
|
|
@import './src/ui/styles/panel-surfaces.css';
|
|
@import './src/ui/styles/cyber.css';
|