It did?!?! AFAICS it doesn't do anything much..
Just SETS $direct_to to $instant_jscript instead of appending the contents; at the end of BOTH ways, $instant_jscript is contained inside $direct_to
Does absolutely nothing. "yes" and 'yes' evaluate to exactly the same thing, since Perl has no boolian type. If it did,
then we might see somethign different.
If the contents of $direct_to are large (I dunno what it does- does it contain other HTML?) then the slow loading of that might be causing the problem you're experiencing- is it an older, slower computer that you have IE 4 installed on? If so, the only reason it works now is it's not getting the browser in a twist with too much info to process at once. But the price you pay is reduced browser compatability.
All-in-all, if it works, go for it I guess, but don't blame MM; there's nothing wrong with the original code above, and that "yes" -> 'yes' REALLY is pointless.