angularjs - MEAN.JS: Slow charging time -
situation
i'm using mean.js framework (mongodb, expressjs, angularjs , nodejs).
i bundled , minified grunt build
angularjs .js
files (controllers, factories, services, directives...).
the result 2 files:
css: 'public/dist/application.min.css', js: 'public/dist/application.min.js'
problem
the file application.min.js
266kb. when user load web , file takes 5 minutes delay before page loaded . (using aws ec2).
get /dist/application.min.js 200 274.939 ms - -
274939 ms > 274.939 s > 4.58 min
the same problem happening before bundling , minified. thinking solution of problem bundling , minified of angularjs files. isn't it.
after .js
files loaded, application fast, takes 5min loaded...
- what need solve problem? project large , have lot of files, , understand angularjs projects this...
i solved problem!
finally problem isn't bundled , minified 266kb file!
the problem liveload.js
file. in localhost, liveload library development, not in production mode file takes lot of time charging page.
the solution remove liveload dependence.
Comments
Post a Comment