Comments (4)
- You should always have at least an empty .wait() at the end of a chain, even if you have no logic to have it perform.
- Are you saying there's a 50ms delay before LABjs starts, or are you saying that each script starts 50ms after the one before it?
from labjs.
just added the .wait()
im saying that there is ~50ms delay between the start of each script after the one before it has started.
<script type="text/javascript">
var asyncjsscripts = [];
asyncjsscripts.push('http://mediacdn.disqus.com/1298421702/build/system/embed.js');
asyncjsscripts.push('http://platform.twitter.com/widgets.js');
asyncjsscripts.push('http://www.google-analytics.com/ga.js');
asyncjsscripts.push('http://connect.facebook.net/en_US/all.js#xfbml=1');
asyncjsscripts.push('http://static.poptattle.com/js/trafficpace.js');
asyncjsscripts.push('http://mediacdn.disqus.com/1298421702/build/system/count.js');
</script>
I use the async snippet from https://gist.github.com/603980
my function f() from line 5 reads as:-
function f(){
$LAB.script(asyncjsscripts).wait();
}
http://www.webpagetest.org/result/110228_4D_3bb68ed39c46b859b9a84778f4c530a9/5/details/ (see #8 to #13)
Internet Explorer 7(and 9) does not have this issue, they start downloading as soon as a download slot is available in the browser.
from labjs.
I don't really have an answer. There's no artificial delays inside of LABjs. It sounds possibly like a bug or network connection timing issue in IE8, especially since other browsers/versions don't exhibit the problem.
from labjs.
Thanks for your replies. On poking further it looks like a bug in webpagetest.org...
ive posted it here http://www.webpagetest.org/forums/showthread.php?tid=558
Basically the tcpdump shows that the requests are made instantly as expected.. so its not a LABjs issue..
from labjs.
Related Issues (20)
- BOM issues HOT 4
- HTTP2 or SPDY and LABjs HOT 2
- swallowing errors doesn't seem right HOT 1
- It's nearing time for 3.0 HOT 31
- LAB inserts scripts at the beginning of the <head> HOT 7
- how to use LAB when Chrome blocks inline scripts ? HOT 2
- LABjs regular expression breaks for Windows apps
- Why not add localStorage to cache the scripts? HOT 6
- What is the role of first line?
- labjs.com is down HOT 1
- Recovering from 404 HOT 1
- Refactor out arguments.callee HOT 1
- huge longshot, but... might be a bug with LAB.js here. HOT 8
- www.labjs.com is not working
- LABjs blocking the executation of jquery each()
- setAttribute("as", "script") in chrome 51.0.2704.84 window7 messy code
- Seeking for a stable v3.0 package
- Current project status HOT 2
- [Question] Does LABjs scrub out the debugger keyword? HOT 2
- JsDelivr - I can't see '.js' files HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from labjs.