Questions tagged [labjs]

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.

See the LABjs home page for more information.

55 questions
2
votes
1 answer

combining LABjs and Modernizr and yepnopejs

I've been using LABjs and it's working well. I'm now trying to make use of the awesome Modernizr, and notice that it uses yepnopejs for conditional resource loading. Since I do want conditional loading, can I use LABjs and yepnopejs together? Or…
fortuneRice
  • 4,214
  • 11
  • 43
  • 58
2
votes
2 answers

Responsive screen size for experiment

I hope I am providing enough detail here. I am currently trying to design an experiment on Labjs and wanted to know if there is a way to make the website more responsive to screen size using HTML or CSS? What I mean by this is that can I use…
Chhavi
  • 23
  • 4
2
votes
2 answers

IE8 Unbelievable Problem with inline LAB.JS script

I have been trying to make my website performs well. One way that may achieve this is by including a loader like LAB.js script inline within my HTML, and then load my scripts in parallel in the next line. So, inside LAB.js library that contains a…
Benny Tjia
  • 4,853
  • 10
  • 39
  • 48
2
votes
1 answer

LABjs Problem With Loading Script

I'm using labjs to load my scripts. I've got a script from feedburner which shows the lastest posts from my blog in HTML from my rss feed. The code from feedburner is and works just fine, showing all the posts in html:
Hirvesh
  • 7,636
  • 15
  • 59
  • 72
2
votes
1 answer

Wrong execution order using LABjs

I made a very simple example (adapted from my real project) that uses LABjs (v2.0.3) to load the javascript files and execute them in a given order. I'm pasting the code below. Since testLAB.js waits for mainCanvas.js, who waits for events.js, I…
mnieber
  • 992
  • 9
  • 23
2
votes
2 answers

Using Labjs i get a "$ is not defined" error but the js still works, not sure why :(

i'm using LABjs for some parallel js loading goodness. But, for some odd reason, i get a error in the debugging console of "$ is not defined". My code is as…
bjohnb
  • 500
  • 2
  • 8
  • 20
2
votes
1 answer

Lab.js and jQuery with $(window).load(function() fire much too early

i use lab.js 2.0.3 for parallel loading my scripts. the problem is, that in 1 of 10 times the "$(window).load" part fired much too early. the part with "$(document).ready" works fine. example:
ComixZ
  • 25
  • 4
1
vote
2 answers

Calling ko.applyBinding with LABjs does not seem to complete

I am using LABjs to load in a vast amount of javascript, and all seems to be working fine, until the final wait (which waits to make sure everything is loaded), then tells knockout to bind the view…
somemvcperson
  • 1,263
  • 2
  • 18
  • 31
1
vote
1 answer

Using a Javascript Loader with jQuery "undefined"

I am using a Javascript Loader [ requireJS ] which loads scripts in parallel to content - however, I have a problem. i.e. require('http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js'); Typically - as a 'backup' - I've used
Tom
  • 11
  • 2
1
vote
3 answers

Is there a provision in LABJS for a callback function if loading times out?

I am asynchronously loading scripts through LabJS and have a chain of dependent scripts. Now if one of the scripts in the chain breaks (in the sense that it can not be downloaded, or connection times out) I believe that the remaining scripts under…
lorefnon
  • 12,875
  • 6
  • 61
  • 93
1
vote
3 answers

Counting the number of clicks by pressing a button

I am new to coding and using Lab.JS for a project. I have a button that when pressed, it counts the number of clicks made and then logs it in the console. It is important that the number of clicks isn't shown on screen when the button is pressed and…
user12905301
1
vote
0 answers

return value(s) with LABjs

So i have this function i want to run after dynamically loading a script with $LABjs, but LABjs does not support return values, it needs to return itself to be able chain load more scripts and wait.. fair enough. But then how do i get the return…
Brunis
  • 1,073
  • 8
  • 12
1
vote
3 answers

LABjs conditionally loading scripts

I would like to start incorporating LABjs into my project but I want to know if there is anyway to conditionally load scripts. For example, something like: $LAB .script('framework.js').wait() .script(function(){ if(es){ …
Adrian Adkison
  • 3,537
  • 5
  • 33
  • 36
1
vote
0 answers

LABjs loading error

I wrote a page loading almost all JS using labJS