https://onezeronull.com/2012/07/20/using-ajax-head-type-requests-to-check-size-of-remote-scripts/
Using AJAX head-type requests to check size of remote scripts