Closed stephane-klein closed 1 year ago
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. SurveyJS is one of the most powerfull survey/form JavaScript library, if not the most.
Thank you, Andrew
It is with debug info
@andrewtelnov how can I disable it?
You can make it smaller by removing questions like matrices, in fact grids, and localizations files from entry files.
I looked all around… but I have not found, can you show me the way?
SurveyJS is one of the most powerfull survey/form JavaScript library, if not the most.
Yes, I know, thanks 💪🤗
@stephane-klein You can use minified version - survey.jquery.min.js
related - survey-core
is very large -- anyway to reduce the size?
Please use minimized version.
Thank you, Andrew
thank you, @andrewtelnov . is the minified version available on npm? I'm using the react client.
thank you, @andrewtelnov . is the minified version available on npm? I'm using the react client.
yes of course, you could find the minified version here https://unpkg.com/browse/survey-core/survey.core.min.js and here is the all package content: https://unpkg.com/browse/survey-core/
Thank you, Dmitry
thank you, @andrewtelnov . is the minified version available on npm? I'm using the react client.
yes of course, you could find the minified version here https://unpkg.com/browse/survey-core/survey.core.min.js and here is the all package content: https://unpkg.com/browse/survey-core/
Thank you, Dmitry
@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