Skip to content

Commit

Permalink
🏁 xhr.send timing
Browse files Browse the repository at this point in the history
  • Loading branch information
59naga committed Apr 16, 2015
1 parent 26e837a commit 4c50bba
Show file tree
Hide file tree
Showing 5 changed files with 357 additions and 197 deletions.
2 changes: 1 addition & 1 deletion bower.json
@@ -1,7 +1,7 @@
{
"name": "jaggy",
"main": "public/jaggy.browser.js",
"version": "0.1.16",
"version": "0.1.17-rc.0",
"homepage": "https://github.com/59naga/jaggy",
"authors": [
"59naga <i59naga@icloud.com>"
Expand Down
2 changes: 1 addition & 1 deletion lib/jaggy.browser.coffee
Expand Up @@ -70,7 +70,6 @@ Jaggy._createSVG= (img,args...,callback)->
xhr.open 'GET',url,true
xhr.timeout= Jaggy.options.timeout
xhr.responseType= 'arraybuffer'
xhr.send()
xhr.onerror= -> callback xhr.statusText,null
xhr.onload= ->
anime= gifyParse.getInfo xhr.response
Expand All @@ -84,6 +83,7 @@ Jaggy._createSVG= (img,args...,callback)->
console.log 'jaggy:converted',cacheUrl,Date.now()-begin,'msec' if Jaggy.options.debug
console.log 'jaggy:rendered',cacheUrl,svg.innerHTML.length.toLocaleString() if Jaggy.options.debug
callback error,svg
xhr.send()

Jaggy.flush= ()->
for key in Object.keys localStorage
Expand Down

0 comments on commit 4c50bba

Please sign in to comment.