Fork me on GitHub

Pegasus

Load your data in parallel with your other scripts

Pegasus is a simple JavaScript solution to improve your average time to display data.

Use it for static sites or when you can't do server-side data bootstrapping / rendering.

Works in all major browsers and IE9+

Without

Data is loaded only after library is loaded (not very efficient).

Run live example

With Pegasus [embedded]

Data is loaded in parallel with the library.

Run live example

With Pegasus [script]

Data is loaded as soon as Pegasus is loaded.

Run live example

* jQuery is used for illustration only, you can use Pegasus with any other Javascript library.

Built by @typicode