UNPKG

@area17/a17-boilerplate

Version:

The official AREA 17 boilerplate

27 lines (19 loc) 572 B
import './polyfills/polyfills.js'; import { resized } from '@area17/a17-helpers'; import * as Behaviors from './behaviors'; import { manageBehaviors } from './functions/manageBehaviors'; /* A17 Doc: // Doc: https://code.area17.com/a17/fe-boilerplate/wikis/js-app */ // HTML4 browser? if (!A17.browserSpec || A17.browserSpec === 'html4') { // lets kill further JS execution of A17 js here throw new Error('HTML4'); } document.addEventListener('DOMContentLoaded', function(){ // go go go manageBehaviors(Behaviors); // on resize, check resized(); });