Jean-Serge / ops_inventory

0 stars 0 forks source link

Correct javascript import #6

Open Jean-Serge opened 7 years ago

Jean-Serge commented 7 years ago

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

xvw commented 7 years ago

How will you do that :) ?

Jean-Serge commented 7 years ago

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.