use document.ready for require-aware examples instead of document.body.onload, which fires too soon for library loading to complete