Skip to content

Instantly share code, notes, and snippets.

@kumaraksi
Last active February 24, 2019 06:49
Show Gist options
  • Save kumaraksi/2a0d5f63cacf6451bd39118c6684d412 to your computer and use it in GitHub Desktop.
Save kumaraksi/2a0d5f63cacf6451bd39118c6684d412 to your computer and use it in GitHub Desktop.
Lazy-load-gmap main file
import './components/gmaps/gmap';
import { EventBus } from "./EventBus";
window.addEventListener('load', function(){
EventBus.getInstance().emit('onLoad')
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment