load-control

1.0.1 • Public • Published

load-control

Control which parts of a page load, and when. Fine-grained control using the loadindex attribute. Framework agnostic.

Tik tok tik tok...

loadindex

The API of this library is simple. Just put a loadindex on any element you want to control the load sequence of (how it displays into the page). Understood values are:

0 - loads in natural order.

1 - loads before anything in natural order.

n - loads before anything with loadindex n-1 or below.

And to prevent loading, use:

-1 - does not load, does not display.

In this way loadindex parallels the concepts of the global attribute tabindex

Get it

$ npm i --save load-control

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i load-control

      Weekly Downloads

      2

      Version

      1.0.1

      License

      MIT

      Unpacked Size

      2.4 kB

      Total Files

      3

      Last publish

      Collaborators

      • dosy