Skip to content

Instantly share code, notes, and snippets.

@amercader
Created January 24, 2011 18:14
Show Gist options
  • Save amercader/793638 to your computer and use it in GitHub Desktop.
Save amercader/793638 to your computer and use it in GitHub Desktop.
According to the docs, I would expect the Firefox behaviour. Am I right?
head.js(
{jquery:"https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"},
{jqueryui:"https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.6/jquery-ui.min.js"},
{gmaps:"http://maps.google.com/maps/api/js?v=3.2&sensor=false"},
{openlayers:"js/openlayers/OpenLayers.js"});
head.ready("jquery", function(){
console.log("jquery ready");
});
head.ready("openlayers",function(){
console.log("openlayers ready");
})
head.ready(function(){
console.log("all ready");
})
/*
Firefox (Firebug) says:
jquery ready
openlayers ready
all ready
Chrome says:
all ready
jquery ready
openlayers ready
*/
@amercader
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment