wildhaber / gluebert

gluebert.js is a tiny helper lazy loading DOM Elements, StyleSheets and JavaScript files using dynamic import and code splitting

Home Page:https://gluebert.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create sleep, loading and ready flags to components

wildhaber opened this issue · comments

Description

As a developer I want to be able to create styling according to component's states.

For example:
sleep = the controller is ready to be attached as soon as the element appears within viewport
loading = the controller, stylesheets and dependencies are loading
ready = everything is bound successfully to the component (the controller must be able to overrule this)

All classes and it's appearance must be configurable in the options params.