3 ms·
I see he's using Ajax to call his API to unshorten the URL. This is fine, but wouldn't it be faster (and less load on his server) if the JavaScript tried to fol
by benhoyt 17y ago
I see he's using Ajax to call his API to unshorten the URL. This is fine, but wouldn't it be faster (and less load on his server) if the JavaScript tried to follow the link directly, and looked at the Location header in the response? Or can't you do this using JavaScript?
- idm 17y agoPersonally, I'd rather his server checked it out, rather than leaking my IP all over the place, potentially making requests to untrusted servers.
- aston 17y agoCross-domain ajax technically doesn't exist, and when it does (via hacks), the target domain sorta needs to know it's responding to a hackified remote javascript request. edit: This might've been relevant if we weren't discussing an add-on. Nevermind...