Skip to content

feat: Remove defer from script tag#1072

Merged
zatteo merged 1 commit intomasterfrom
feat/remove-defer
Nov 24, 2025
Merged

feat: Remove defer from script tag#1072
zatteo merged 1 commit intomasterfrom
feat/remove-defer

Conversation

@zatteo
Copy link
Copy Markdown
Member

@zatteo zatteo commented Nov 24, 2025

defer was added during rsbuild migration without being directly related to rsbuild migration and:

  • it has no interest because we load an empty HTML with scripts and we are dependent to these scripts so we must wait them
  • we suspect highly that defer has strange behavior on Safari causing scripts to be executed before CSS loaded leading to MUI errors

defer was added during rsbuild migration  without being directly
related to rsbuild migration and:
- it has no interest because we load an empty HTML with scripts and
we are dependent to these scripts so we must wait them
- we suspect highly that defer has strange behavior on Safari causing
scripts to be executed before CSS loaded leading to MUI errors
@zatteo zatteo requested a review from JF-Cozy as a code owner November 24, 2025 10:34
@bundlemon
Copy link
Copy Markdown

bundlemon bot commented Nov 24, 2025

BundleMon

Unchanged files (10)
Status Path Size Limits
static/js/cozy.(hash).js
553.32KB -
static/js/(chunkId).(hash).js
528.25KB -
static/js/main.(hash).js
263.94KB -
services/autoDefineLabels.js
243.6KB -
services/keepIndexFullNameAndDisplayNameUpToD
ate.js
243.4KB -
services/cleanRelatedContacts.js
243KB -
static/js/lib-react.(hash).js
44.11KB -
static/css/cozy.(hash).css
29.44KB -
static/js/lib-router.(hash).js
21.86KB -
static/css/main.(hash).css
1.11KB -

No change in files bundle size

Unchanged groups (3)
Status Path Size Limits
**/*.js
3.5MB -
**/*.{png,svg,ico}
1.15MB -
**/*.css
59.47KB -

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

@zatteo zatteo merged commit 9cfbd7a into master Nov 24, 2025
2 checks passed
@zatteo zatteo deleted the feat/remove-defer branch November 24, 2025 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant