LABjs (Loading And Blocking JavaScript) is an open-source (MIT license) project supported by Getify Solutions. The core purpose of LABjs is to be an all-purpose, on-demand JavaScript loader, capable of loading any JavaScript resource, from any location, into any page, at any time.
Questions tagged [labjs]
55 questions
0
votes
1 answer
File size for js and css scripts to be loaded
I know the best way to load javascript and css is to join and compress css files together and same for javascript. So that if you need javascript files you only make 1-2 calls to server.
But it seems making 3 requests, 1 for html document 1 for css…

Yaroslav Yakovlev
- 6,303
- 6
- 39
- 59
0
votes
0 answers
Uncaught TypeError: Cannot read property 'DataTable' of undefined
Trying to use google charts in chart point while loading the resources through LABjs.
I keep getting the error that DataTable is undefined.
This is what I used to load LABjs:

Batman
- 5,563
- 18
- 79
- 155
0
votes
2 answers
Script seems to be running before jQuery loads - Uncaught ReferenceError: $ is not defined
I'm editing a sharepoint master page which contains at the very top of my head tag, a call to labJS and a scriptloader.js file.
This is what this file contains:
$LAB
.script("/Style Library/libs/jquery-1.10.2.min.js")
.script("/Style…

Batman
- 5,563
- 18
- 79
- 155
0
votes
1 answer
LABjs bug : scripts always excuted the sequence they are loaded using .script()
When I did some test cases with LABjs,I encountered some problems,here comes the code:
$LAB.script('http://code.jquery.com/jquery-1.8.0.min.js')
.script('http://id.qq.com/js/10001/simple.js');
according to the API description, there is no…

casperchen
- 5
- 1
- 1
0
votes
1 answer
LABjs Loading IE Conditions
I'm having an issue with LABjs. I load all my scripts, but when I use it in IE it completely breaks down.
$LAB
.script('https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js').wait()
…

xivo
- 2,054
- 3
- 22
- 37
0
votes
1 answer
PageSpeed Insights: Trouble with Defer parsing of Javascript (LabJS)
I have been working on some site optimization for a while, and have run into a bit of a confusing issue. The biggest complaint from PageSpeed Insights for us, has pretty much always been "Defer parsing of Javascript". To fix this problem we started…

Phillip Benages
- 661
- 2
- 9
- 20
0
votes
1 answer
displaying progress bar for labjs, labjs callbacks
How can I keep track of what scripts have been loaded so far so I can display a progress bar when using labjs (http://labjs.com/)? wait() doesn't work because then it won't parallel load the next resource. Basically i'm looking for some kind of…

LordZardeck
- 7,953
- 19
- 62
- 119
0
votes
1 answer
Show alert on page load using LAB JS
I inherited some code and all I want to do is run some jQuery code specifically an alert.
I know how to do that using jQuery/JavaScript but now sure if I can just use what I already have which is as follows: