export type Condition = ( w : Window ) => boolean ; export const ALWAYS = ( ) => true ; export const NEVER = ( ) => false ; export const DOMCONTENTLOADED = ( state ) => state !== "loading" ; export const LOAD = ( state ) => state === "complete" ;