At some point, I feel your frustration, man. Loading menu icons can be a real pain, especially when they're coming from URLs or local files. Your JavaScript snippet seems solid, but dang, those icons taking forever to show up are a bummer.
But there's one thing. Have you considered optimizing...