Beside the additional load on page load: Can these unused functions slow down the performance?
Beside the additional load on page load? Only if the user is on an extremely memory-starved device. 500k of JavaScript code doesn't translate into much memory usage for the parsed result at all, the effect of it sitting in memory will, in all but the most unusual environments, be effectively zero.
But two points on the thing you were leaving out with that "beside" comment:
- Downloading the unnecessary code; could have a noticeable effect on a slower connection.
- Parsing (and possibly compiling) the unnecessary code; could have a very small effect on the apparent page load, on a device with a really slow processor or a browser with a really slow JavaScript engine.
But effectively, in the vast majority of environments, just having the extra functions around won't cause a noticeable effect at all. It's primarily downloading the unnecessary program text that will be noticeable.