+# inspiration from https://github.com/ramitos/lazyload/blob/master/src/lazyload.js
+#
+GECKO = /Gecko\//.test(navigator.userAgent)
+
 class Loader
 
     constructor: (urls,cb)->

        this.body.appendChild(node)


Lanes.lib.Loader = (urls...)->
    urls = urls[0] if urls.length == 1 && _.isArray(urls[0])
    new _.Promise(  (resolve,reject)->
        new Loader(urls, (completed)->

        )
        return fn(url, true)  if exists
        called = false
        tag = "link" #if GECKO then "style" else "link"
        node = _.el( tag,
           type: "text/css"
           href: url
           media: "screen"
           rel: "stylesheet"
        )

        onloaded=(success,err)->
