Skip to content

Commit

Permalink
GH-1: Avoid multiple CSS loads
Browse files Browse the repository at this point in the history
  • Loading branch information
nagareproject committed Jan 9, 2018
1 parent 3d51c60 commit 44e276e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions static/ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,8 @@ function nagare_loadAll(named_css, anon_css, css_urls, named_js, anon_js, js_url

setTimeout(anon_js, 0);

YAHOO.util.Get.css(nagare_itemgetter(css_urls, 0), { onSuccess: function (o) {
YAHOO.util.Get.script(nagare_itemgetter(js_urls, 0), { onSuccess: function(o) { o.purge();} });
} });
YAHOO.util.Get.css(nagare_itemgetter(css_urls, 0));
YAHOO.util.Get.script(nagare_itemgetter(js_urls, 0));
}

//----------------------------------------------------------------------------
Expand Down

0 comments on commit 44e276e

Please sign in to comment.