T
T
tytar2013-10-15 10:11:29
JavaScript
tytar, 2013-10-15 10:11:29

Preloading in require.js

Good afternoon, a question for the experienced. I use require.js in one project and it so happened that 90% of the modules use the same libraries, can they somehow be preloaded into define without a description, so to speak “by default”, because now “noodles” are coming out.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2013-10-15
Protko @Fesor

Excuse me, but why do you need require.js with this approach? You can also use all sorts of head.js and stuff, since you have such related modules. And jquery plugins are not modules at all. You can group them together with jquery, since they are only used in this context. This is done with plugins from twitter bootstrap for example.

A
Anatoly, 2013-10-15
@taliban

It is possible more in detail? It's not clear what you need

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question