A
A
Alexander Staroverov2015-05-29 12:38:29
JavaScript
Alexander Staroverov, 2015-05-29 12:38:29

"Module, load!"?

Introduction:
We have a SPA, with a bunch of modules tied to work with DOM objects
Problem: The
heap is large, I don’t want to incilize it all on load, and even more so to do it like $(document).on(click, 'someElement', someFunction) ;
Q:
How to gracefully call only the required modules?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
evnuh, 2015-05-29
@evnuh

requirejs

V
Vitaly Sorokin, 2015-05-29
@VitalySorokin

webpack can do something like this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question