This is safe
d.head is available at document-start in everything but Scriptish.
Which we don't support
Merge some old favicon changes from appchan that never made it back
to v3