Skip to content

fix(GradualBlur): reduce the bundle size from 60.55kB gzip to 8.14kB gzip#944

Open
Arjunsharmahehe wants to merge 2 commits intoDavidHDev:mainfrom
Arjunsharmahehe:feat/fix-GradualBlur-component
Open

fix(GradualBlur): reduce the bundle size from 60.55kB gzip to 8.14kB gzip#944
Arjunsharmahehe wants to merge 2 commits intoDavidHDev:mainfrom
Arjunsharmahehe:feat/fix-GradualBlur-component

Conversation

@Arjunsharmahehe
Copy link
Copy Markdown

Removed the mathjs import which was not needed and was just bloating the bundle. It was used just for the round and pow function which are provided by Math. It does not change the behavior of the component and optimizes the bundle a lot.

Before:
Screenshot 2026-04-16 224541

After:
Screenshot 2026-04-16 224449

@Utkarsh-Singhal-26
Copy link
Copy Markdown
Contributor

Utkarsh-Singhal-26 commented Apr 17, 2026

Also remove the unnecessary mathjs dependency from public/r/registry.json for the GradualBlur component.
Updated:

"dependencies": []

(previously included "mathjs@^14.6.0")

@Arjunsharmahehe
Copy link
Copy Markdown
Author

I removed the dependency from the public/r/registry.json, there appear to be some other changes in the diff view but that is just a rearrangement in the order of listing of the element. of the Hyperspeed component. It appears to have happened on build. It should not cause any issue so that is fine I suppose.

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.

2 participants