Created
January 24, 2011 18:14
-
-
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?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks!