So, what happens? Why is it almost inevitable our computers will start to turn on us by getting so slow they are a pain in the neck just to boot up? What can we do to spare ourselves from this misery? How can we make these fun to operate machines fun to operate once again?
First of all, usually it isn’t the computer itself that is causing the loss of speed. In most cases, nothing has happened to the PC. So, if this is true with your slowing computer, which it probably is, it is the Windows operating system causingregistry corruption limits computer speed
your woes.
How do I compress my code?
Generally the best way to do it is to use the YUI compressor.
An alternative is to use Douglas Crockford's JSMin. This doesn't compress JavaScript code as small, but generally how you write your code matters less. jQuery also provides a pre-minified version of jQuery for your convenience.
Packing javascript using Dean Edwards' Packer (specifically using the base64 encode) is not recommended, as the client-side decoding has significant overhead that outweighs the file-size benefits.
If compressing your JavaScript breaks it, try running the code through JSLint. This will detect minor errors that can cause packed JavaScript to fail where the unpacked version works fine.
A. Upadhyaya, M. Fisichella, and W. Nejdl. Proceedings of the ACM Web Conference 2023, WWW 2023, Austin, TX, USA, 30 April 2023 - 4 May 2023, page 3948--3958. ACM, (2023)
Z. Ren, T. Nguyen, M. Zahedi, and W. Nejdl. International Joint Conference on Neural Networks, IJCNN 2023, Gold Coast, Australia, June 18-23, 2023, page 1--7. IEEE, (2023)
A. Upadhyaya, M. Fisichella, and W. Nejdl. Proceedings of the Thirty-Second International Joint Conference on Artificial Intelligence, IJCAI 2023, 19th-25th August 2023, Macao, SAR, China, page 6246--6254. ijcai.org, (2023)
A. Upadhyaya, M. Fisichella, and W. Nejdl. Proceedings of the Seventeenth International AAAI Conference on Web and Social Media, ICWSM 2023, June 5-8, 2023, Limassol, Cyprus, page 854--865. AAAI Press, (2023)
A. Khatua, and W. Nejdl. Proceedings of the 34th ACM Conference on Hypertext and Social Media, HT 2023, Rome, Italy, September 4-8, 2023, page 35:1--35:10. ACM, (2023)
L. Basso, Z. Ren, and W. Nejdl. 31st European Signal Processing Conference, EUSIPCO 2023, Helsinki, Finland, September 4-8, 2023, page 1375--1379. IEEE, (2023)