window.load caught

problem
----------
Toggling layers might leave the click-feedback (circle/arrow-marker) hanging: like the getData doesn't resolve.

Solution
----------
Taking into account whether the window object is already finished loading when attaching event handlers (for the "load" event) to Leaflet layers.