D
D
dake12312014-02-07 06:59:07
JavaScript
dake1231, 2014-02-07 06:59:07

HTML + JS optimization and modular loading

Hello! We are making one portal that is very heavy in terms of functionality. In order for everything to work as it should, 30 js files are connected. Used by dojo, jquery, kendo. It is not possible to stop at one. How can such code be optimized, is it possible to make it so that with one event or function call, its own js is connected, and not loaded every time?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
Kirill Arutyunov, 2014-02-07
@arutyunov

Have you tried Grunt?

A
aen, 2014-02-07
@aen

They won't load every time. The second time the browser will take it from the cache.
As an option, load everything from the CDN, there will be a chance that some of your libraries are already on your client.

V
Vitaly Zheltyakov, 2014-02-07
@VitaZheltyakov

Maybe you should try Application Cache

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question