-
Notifications
You must be signed in to change notification settings - Fork 839
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why survey.jquery.js is so big (6.54 MiB)? #3075
Comments
Do you have any idea why it ? @andrewtelnov @dmitrykurmanov |
@stephane-klein It is with debug info. You can make it smaller by removing questions like matrices, in fact grids, and localizations files from entry files. Thank you, |
@andrewtelnov how can I disable it?
I looked all around… but I have not found, can you show me the way?
Yes, I know, thanks 💪🤗 |
@stephane-klein You can use minified version - survey.jquery.min.js |
related - |
Please use minimized version. Thank you, |
thank you, @andrewtelnov . |
yes of course, you could find the minified version here https://unpkg.com/browse/survey-core/survey.core.min.js Thank you, |
@dmitrykurmanov This is not quite what I'm looking for since I'm bundling survey-js dependencies as part of a single-page web app. For the npm registry, is there a minified version for use in node-based projects? Currently, the survey-core dependency is over ~6 MBs. this combined with using survey-creator-core (5.46MB) + survey-creator-react and survey-react-ui (.5MB and 1.24MB) makes including these dependencies expensive from a bundling perspective. |
We extracted map files from unminified build results. For survey-jquery right now script became 2.5M, map file - 3.5M. This should help to some extent. If you need to reduce bundle size more, you can clone this repo and create a custom build. |
Hi,
When I build
survey-jquery
in mysurvey-jquery-webpack-playground
I see:Question: why
survey.jquery.js 6.54 MiB
is so big? 🤔Best regards,
Stéphane
The text was updated successfully, but these errors were encountered: