I am building a master page for a public facing website, and I have removed core.js for better performance.
The issue is that I am now getting a bunch of errors because functions are absent. This includes for example Sys.Application.initialize(),ExecuteOrDelayUntilScriptLoaded() and WPSC.init().
How can I prevent these scripts from running? The page itself works fine, I just want to get rid of the errors.
Here is an live example: http://usermanagedsolutions.com
[Update]
Several comments were questioning the removal of core.js, and Shane Jordan replied with an excellent reference from Chris O'Brien:
http://www.sharepointnutsandbolts.com/2011/01/eliminating-large-js-files-to-optimize.html
Whether core.js should be removed is open to discussion, but we should at least consider the option. Chris show in his post that the gains can be significant. Regarding caching, the answer is also in Chris' post: for public sites, "we are primarily discussing the first-time user experience".
Thanks all for the input!
[Update 2]
To answer James' comment: I removed core.js for visitors only. Contributors get the full SharePoint functionalities.