One is located in the directory
Webpacker manages the other one, which you can read more about in this guide.
application.js automatically includes all JS files via the statement:
//= require_tree .
One JS file in particular,
1 2 3 4 5 6 7
initializeBaseTracking(); initializeCommentsPage(); initEditorResize(); initLeaveEditorWarning(); initializeArticleReactions(); initNotifications(); initializeSplitTestTracking();
All the "initializers" are in