Allow declaration before window.onload, link tag media attribute support