Skip to content

PB-259: Manual chunks for better startup performance#675

Merged
ltshb merged 3 commits intodevelopfrom
feat-PB-259-menu-module
Mar 4, 2024
Merged

PB-259: Manual chunks for better startup performance#675
ltshb merged 3 commits intodevelopfrom
feat-PB-259-menu-module

Conversation

@ltshb
Copy link
Contributor

@ltshb ltshb commented Mar 1, 2024

Before

dist/production/v1.8.0-beta.4/assets/OpenLayersMap-G4yf78Ek.css                                 1.24 kB │ gzip:   0.51 kB
dist/production/v1.8.0-beta.4/assets/CesiumMap-rSwnPDY_.css                                    27.58 kB │ gzip:   6.10 kB
dist/production/v1.8.0-beta.4/assets/index-fIQOV_l-.css                                     1,816.31 kB │ gzip: 174.01 kB
dist/production/v1.8.0-beta.4/assets/__vite-browser-external-YvMT15k-.js                        0.03 kB │ gzip:   0.05 kB
dist/production/v1.8.0-beta.4/assets/identifyOnVectorLayer-2QNEbx8e.js                         10.01 kB │ gzip:   3.71 kB
dist/production/v1.8.0-beta.4/assets/OpenLayersMap-D4ysht83.js                                906.42 kB │ gzip: 251.63 kB
dist/production/v1.8.0-beta.4/assets/index-aHcbgfme.js                                      2,667.74 kB │ gzip: 808.73 kB
dist/production/v1.8.0-beta.4/assets/CesiumMap-o_sELmsc.js                                  3,874.58 kB │ gzip: 930.36 kB

After

dist/production/v1.8.0-beta.4+3.g23e7b849/assets/__vite-browser-external-YvMT15k-.js                        0.03 kB │ gzip:   0.05 kB
dist/production/v1.8.0-beta.4+3.g23e7b849/assets/styleFromLiterals-vV8dHJwT.js                              4.25 kB │ gzip:   1.60 kB
dist/production/v1.8.0-beta.4+3.g23e7b849/assets/condition-k93ShPCi.js                                      4.77 kB │ gzip:   1.66 kB
dist/production/v1.8.0-beta.4+3.g23e7b849/assets/DrawingModule-clPMnKJ9.js                                 73.90 kB │ gzip:  22.28 kB
dist/production/v1.8.0-beta.4+3.g23e7b849/assets/Vector-2gj_NtKX.js                                       122.81 kB │ gzip:  34.96 kB
dist/production/v1.8.0-beta.4+3.g23e7b849/assets/OpenLayersMap-NL56gvtP.js                                906.46 kB │ gzip: 251.64 kB
dist/production/v1.8.0-beta.4+3.g23e7b849/assets/utils-1n4-CFGc.js                                      1,023.41 kB │ gzip: 342.08 kB
dist/production/v1.8.0-beta.4+3.g23e7b849/assets/index-8ipYSk85.js                                      1,444.01 kB │ gzip: 412.46 kB
dist/production/v1.8.0-beta.4+3.g23e7b849/assets/CesiumMap-7CFY7Gw4.js                                  3,874.63 kB │ gzip: 930.38 kB

Test link

@ltshb ltshb force-pushed the feat-PB-259-menu-module branch from 11c1eff to cdb1f51 Compare March 1, 2024 13:16
@cypress
Copy link

cypress bot commented Mar 1, 2024

Passing run #856 ↗︎

0 167 22 0 Flakiness 0

Details:

PB.2559: Fix toggling in 3d race condition
Project: web-mapviewer Commit: d6bc95263e
Status: Passed Duration: 04:04 💡
Started: Mar 4, 2024 2:50 PM Ended: Mar 4, 2024 2:54 PM

Review all test suite changes for PR #675 ↗︎

@ltshb ltshb requested a review from pakb March 1, 2024 13:22
@ltshb ltshb marked this pull request as ready for review March 1, 2024 13:22
@ltshb ltshb force-pushed the feat-PB-259-menu-module branch from ad02d61 to 23e7b84 Compare March 4, 2024 06:43
@ltshb ltshb removed the request for review from pakb March 4, 2024 06:45
@ltshb ltshb marked this pull request as draft March 4, 2024 06:45
@ltshb ltshb force-pushed the feat-PB-259-menu-module branch from 23e7b84 to e89754c Compare March 4, 2024 07:03
@ltshb ltshb marked this pull request as ready for review March 4, 2024 07:03
@ltshb ltshb requested a review from pakb March 4, 2024 07:03
@ltshb ltshb force-pushed the feat-PB-259-menu-module branch 2 times, most recently from e9986a7 to 1b1754b Compare March 4, 2024 11:28
@ltshb ltshb force-pushed the feat-PB-259-menu-module branch from 1b1754b to 3f5c5b4 Compare March 4, 2024 14:47
ltshb added 3 commits March 4, 2024 15:47
When loading the menu as async componenent, it adds a kind of race condition
when toggling in 3d mode for the first time making the application crash.

So avoid this race condition by keeping the menu module within the index
chunk.

NOTE: I did not track down the race condition to understand what was really
the issue.PB.2559: Fix toggling in 3d race condition
@ltshb ltshb force-pushed the feat-PB-259-menu-module branch from 3f5c5b4 to d6bc952 Compare March 4, 2024 14:48
@ltshb ltshb merged commit ce4800f into develop Mar 4, 2024
@ltshb ltshb deleted the feat-PB-259-menu-module branch March 4, 2024 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants