From 8735059dd511cced183cf8ffb600ea1bf459bcff Mon Sep 17 00:00:00 2001 From: Prayag Verma Date: Tue, 9 Feb 2016 13:21:58 +0530 Subject: [PATCH 1/3] Change syntax highlighting Better HTML and Javascript syntax highlighting for code --- README.md | 54 +++++++++++++++++++++++++++--------------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index e4bfae9..eacd2d0 100644 --- a/README.md +++ b/README.md @@ -8,29 +8,29 @@ LABjs is a dynamic script loader intended to replace the use of the ugly, non-pe The defining characteristic of LABjs is the ability to load *all* JavaScript files in parallel, as fast as the browser will allow, but giving you the option to ensure proper execution order if you have dependencies between files. For instance, the following "<script> tag soup": - - - - - - - +```html + + + + + +``` With LABjs becomes: - - - - +```html + + +``` The differences between the two snippets is that with regular <script> tags, you cannot control their loading and executing behavior reliably cross-browser. Some new browsers will load them in parallel but execute them serially, delaying execution of a smaller (quicker loading) script in the pessimistic assumption of dependency on previous scripts. Older browsers will load *and* execute them one-at-a-time, completely losing any parallel loading speed optimizations and slowing the whole process drastically. All browsers will, however, block other page resources (like stylesheets, images, etc) while these scripts are loading, which causes the rest of the page's content loading to appear much more sluggish to the user. @@ -54,14 +54,14 @@ Configuration There are a number of configuration options which can be specified either globally (for all $LAB chains on the page) or per chain. For instance: - - $LAB.setGlobalDefaults({AlwaysPreserveOrder:true}); - +```js +$LAB.setGlobalDefaults({AlwaysPreserveOrder:true}); +``` would tell all $LAB chains to insert an implicit .wait() call in between each .script() call. The behavior is identical to if you just put the .wait() call in yourself. - - $LAB.setOptions({AlwaysPreserveOrder:true}).script(...)... - +```js +$LAB.setOptions({AlwaysPreserveOrder:true}).script(...)... +``` would tell just this particular $LAB chain to do the same. From 122980badcfefd4a005613de59a8a3732cbd1210 Mon Sep 17 00:00:00 2001 From: Kyle Simpson Date: Wed, 5 Apr 2017 08:20:45 -0500 Subject: [PATCH 2/3] updating project status back to active! --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index eacd2d0..758adc0 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,9 @@ +**IMPORTANT:** This project is undergoing [a complete 3.0 rewrite](https://github.com/getify/LABjs/tree/v3.0). Please [follow the progress](https://github.com/getify/LABjs/issues/113#issuecomment-288885644). + + LABjs (Loading And Blocking JavaScript) ======================================= -**NOTE: LABjs is still supported, and still encouraged to be used if it makes sense for your project. But, no further development beyond bug fixes is expected. LABjs is almost 4 years old, and has been stable (no bug fixes/patches) for almost 2 years. Thank you to the community for your support of this project over the last 4 years.** - LABjs is a dynamic script loader intended to replace the use of the ugly, non-performant <script> tag with a flexible and performance-optimized alternative API. The defining characteristic of LABjs is the ability to load *all* JavaScript files in parallel, as fast as the browser will allow, but giving you the option to ensure proper execution order if you have dependencies between files. From 35fc5da7191ae349ea819b9b1ae4819da8fe96f7 Mon Sep 17 00:00:00 2001 From: Kyle Simpson Date: Thu, 18 Jul 2019 01:35:03 +0200 Subject: [PATCH 3/3] Adding sponsorship options --- .github/FUNDING.yml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .github/FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..dcbd905 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,5 @@ +# These are supported funding model platforms + +github: [getify] +patreon: getify +custom: ['https://www.paypal.com/paypalme2/getify','https://www.blockchain.com/btc/payment_request?address=3GrZuzooWAAjufEydb7c8MrUYznCiHHT9U&message=getify+Support+Donation']