Open Jean-Serge opened 7 years ago
Currently all javascript is run on every page.
Certain code should only be called on specific pages.
The script event_handlers.js search for a specific element on each page but this element only exists on the /servers page
event_handlers.js
/servers
How will you do that :) ?
At least only require a wanted function to avoid console error front side.
Search if exists a way to do smart import, maybe by disabling brunch.
Currently all javascript is run on every page.
Certain code should only be called on specific pages.
Example
The script
event_handlers.js
search for a specific element on each page but this element only exists on the/servers
page