There is no faster (pun intended) way to slow down a site than to use a bunch of JavaScript.
The thing about JavaScript is you end up paying a performance tax no less than four times:
- The cost of downloading the file on the network
- The cost of parsing and compiling the uncompressed file once downloaded
- The cost of executing the JavaScript
- The memory cost
The combination is very expensive.