Opened 12 years ago

Closed 12 years ago

#10660 closed enhancement (fixed)

Test for document.readyState === "complete" as a better alternative to djConfig.afterOnLoad

Reported by: James Burke Owned by: James Burke
Priority: high Milestone: 1.5
Component: Core Version: 1.4.0
Keywords: Cc:
Blocked By: Blocking:


With Firefox 3.6, all the modern browsers will set document.readyState === "complete" after page load. Testing this value will give a better indication if dojo has been evaluated after page load, and allows dojo.js to be included via a script with a defer attribute in a way that allows less configuration.

Still need to keep around afterOnLoad support for now since we still support Firefox 3.5, but in the future, after this ticket is fixed, we could remove afterOnLoad as FF 3.5 dies out.

Change History (1)

comment:1 Changed 12 years ago by James Burke

Resolution: fixed
Status: newclosed

Fixed as part of #10918

Note: See TracTickets for help on using tickets.