Here\'s what I\'m hoping to do:
I want to send an ajax request to a file (preferably with jQuery), and once the file has been loaded, determine the size of the reque
var XHRObj = $.ajax({ type:'HEAD', url:'/', success:function(data) { console.log( XHRObj.getResponseHeader('Content-Length') ) } })
You basically do a HEAD HTTP request and query the Content-Length, which returns X bytes.