I have recently used this below code in the home page CMS to get rid of all unnecessary css files that were getting loaded and causing slow speed. I removed almost 8 such files. Now the home page loads and I dont get to see the files references in view source.
Now I also want to remove all the unnecessary js files using the same code, which is possible but I need to know the following.
What role do scriptaculous js and prototype play, specific to home page on magento cart? Is it ok to remove them and it would not cause any error elsewhere?
Here is the js code: