Why are most marketing tags (Omniture, XE, etc.) written with document.write ()?

Possible duplicate:
Why use document.write?

Given the negative effects of document.write (), why are most tracking / marketing tags written using document.write ()?

I thought about it quite a bit, and the only respectable idea that I came up with is that by writing it on the client side, we guarantee that the browser will not try to cache the resource. This is it? Any other ideas?

+3
source share
4 answers

, , , - . " " , , , v3-, , .

[edit] "v3", Firefox 3, Netscape 3. Netscape , , 11.

+2

, -, ...? , , - , , IMG- document.write -written IMG.

, , script . ( ) script (, URL-, ) , HTTPS. https-, https://omniture.com/xxx, http://omniture.com/yyy. javascript, HTML. , , , , " , ", , , , .

+1

. script, , script. script document.getElementsByTagName("script") HTML script URI, , URI (http://example.com/blah.js#foo) DNS. , script, . document.write . (<script async>)

0

Source: https://habr.com/ru/post/1739913/


All Articles