- /*
- The load event is fired when the whole page has loaded, including all dependent resources such as stylesheets and images. This is in contrast to DOMContentLoaded, which is fired as soon as the page DOM has been loaded, without waiting for resources to finish loading.
- Ref: https://developer.mozilla.org/en-US/docs/Web/API/Window/load_event
- */
- <script type="text/javascript">
- document.querySelector('#ucblock').addEventListener('load', function() {
- ucloaded();
- });
- function ucloaded() {
- console.log('loaded');
- $('.uc-embedding-more-info').click(function() {
- console.log('click');
- });
- }
- </script>
Recent Pastes