Many eventов and Webpack?

Write jQuery plugins, and then compile them all into one script with the help of Webpack.

I have almost every plug-in has event. If it does not load the comp? Every plugin works on your page. There are some global plugins. For example, the plugin works on your page, then going to the other place that item on which hung the handler no longer exists, that is, the event is at idle. It is normal practice?
June 3rd 19 at 19:12
1 answer
June 3rd 19 at 19:14
Event does not work until it is called. Hanging yourself a subscription to an event, well, hanging.

> It is normal practice?
Not to say that normal, but commonplace.

As a variant - to make a initializer for plugins page (But it is).
Or you can try Vue and single-file components.

Find more questions by tags JavaScriptjQueryFrontend