usr提出了一个问题：What does a script-Tag with src AND content mean?，或许与您遇到的问题类似。
Different browsers treat this differently. Some run the content only if the
srcis included without error. Some run it after attempting to include the
srcscript, regardless of success. Since this behaviour is unreliable (and prohibited in HTML5), it should be avoided.
Google isn't relying an any specific behaviour. Since the content is just an object literal (a value), executing it would not actually do anything except cause a silent error. Google's code looks at the contents of the
scripttag itself, and adjust its behaviour based on that.