|
|
|
|
|
by ge96
3326 days ago
|
|
I've heard of lighter versions of jQuery and it's not really like I'm against jQuery in this particular case internet speed is really bad... and I did not know of a way to async load scripts and not have the $.is not defined problem. Mainly though the jQuery library itself is 80KB (jquery-min)... the downloading speed thing (watching network) it's hit and miss, I mean I see a 1KB file take nearly 1 second to download so why wouldn't an 80KB file take 80 seconds to download. It's good though to learn pure JavaScript I think. But yeah I got so used to the calls that deal with cross-browser problems. thanks for the thought |
|
This does not follows though, TCP doesn't works like that, the initial congestion window is usually small and grows as more packets are received, that's why using Keep-Alive is so important, so you don't have to rebuild the socket and TLS connection before every request. Add some ping into the equation and getting the socket up to speed can take several seconds (even minutes) depending on the bandwidth, and the connection's packet loss.