Access to controls at an early stage | download vs domready

I was recently at jsfiddle.net and I saw this as a configuration option. This made me think that this might help in my problem:

I upload multiple images (not yet updated to a single sprite), so I cannot use my controls until they are loaded ... the images take up most of the download time, so for the first few seconds I don’t can access my controls.

I am currently using one of these two works.

window.onload = initialize_page

window.addEventListener('load',initialize_page);

Similar

Jquery document ready for comparison with window.onload

window.onload vs. body.onload vs. document.onready

window.onload vs <body onload = "/>

+5
source share
1

AFAIK onDomReady() DOM. , , , . onLoad() , .

, onDomReady() onLoad(), .

+5

All Articles