The only two types of scripts I know of that still need to go in the head are:
1. framebreaker scripts and similar where the script is deciding whether to continue loading the page or to start a new page load
The one type of script I know of that still needs to wait for the load event to trigger before it can run is where the script is going to substitute different images for any externally linked images that fail to load.
Question One: Can anyone think of any other types of script that need to go in the head rather than just before the </body> or which need to wait for the load event to trigger before they run?
I know that any script can go in the head with an appropriate delay applied - but which onces must go there? I also know that all scripts placed at the bottom can apply a delay but which ones will actually fail to work at all if you don't apply a delay?
google_ad_client = "pub-9999999999999999";
google_ad_slot = "9999999999";
google_ad_width = 300;
google_ad_height = 250;
Are there any ad services that display ads like Google AdSense that do not use antiquated document.write statements and so can be placed with the rest of the scripts without needing to use postscribe?
I know that there are lots of other types of scripts that might still use document.write but you can always find an alternative to those that doesn't use that call or alternatively rewrite the script to get rid of that call - something that you cannot do with ad scripts so that using postscribe to dynamically change how document.write works is the only alternative to actually jumbling the scripts through the page.
As it has been over three days since I posted the above questions and no one has commented, does that mean that no one knows of any other scripts that need to go in the head or need to wait for the load event other than the three that I mentioned and that no one knows of any ad script written for relatively modern browsers such as Internet Explorer Five rather than for antiquated ones such as Netscape four?
The only ones that come to mind are advertising tagging like you already described. In particular I know the Yahoo APT tagging must be located in the head without using something like postscribe. There is probably some analytics tagging out there somewhere that uses document.write as well. Though none that I'm aware of. I think it is safe to say with services like Tealium most vendor tagging uses proper methods. Before leaving my last job there was an initiative in place to move all our tagging over to Tealium and from what I know the only one that could not be was Yahoo APT ad tagging. Pretty open ended question considering the number of vendors out there that provide web site tagging. There will always be exceptions to the rules.