Re:An iframe from googlesyndication.com tries to access the ...
by mschuster91 on Sunday December 19, 2021 @12:15PM
(#29615815)
Because ads can use Javascript which is notorious for how hard it is to vet code and how easy it is to hide functionality.
[ Parent
| on HN ]
Re:An iframe from googlesyndication.com tries to access the ...
by hetspookjee on Sunday December 19, 2021 @12:44PM
(#29616177)
But why do they need that? What purpose does an ad with javascript serve?
Re:An iframe from googlesyndication.com tries to access the ...
by mschuster91 on Sunday December 19, 2021 @01:29PM
(#29616718)
Animations, tracking and fraud detection are the big areas. Ads were historically one of the strongest drivers of Flash, given how easy it made for creatives to implement animations without needing a frontend developer - ad buyers these days would instantly protest against any attempt to remove either of the three use cases.
And given that we are talking about sometimes eight figures worth of ad buying... no network will want to risk offending such clients.
Re:An iframe from googlesyndication.com tries to access the ...
by hetspookjee on Sunday December 19, 2021 @04:12PM
(#29618475)
I still don't understand it. I was under the impression that animations are also able to be served through HTML5? Both CSS and HTML should be sufficient. ~We're in the age where we're able to serve an entire sqlite database over a static website, yet an animation does require javascript?~
EDIT: I am wrong to think that serving and interacting with a sqlite database goes without javascript.
Re:An iframe from googlesyndication.com tries to access the ...
by danachow on Sunday December 19, 2021 @05:23PM
(#29619075)
> We're in the age where we're able to serve an entire sqlite database over a static website
Making use of the SQLite database is entirely client side and requires JavaScript or WASM (the distinction is unimportant) - it requires running code on the frontend. This is not a great way to state your case.
Re:An iframe from googlesyndication.com tries to access the ...
by hetspookjee on Sunday December 19, 2021 @06:06PM
(#29619492)
You're right and I misinterpreted the sqlite implementation. I will edit my comment to reflect my error.
Re:An iframe from googlesyndication.com tries to access the ...
by jefftk on Sunday December 19, 2021 @05:59PM
(#29619435)
Animations can be CSS, yes. That's what you do in https://amp.dev/documentation/guides-and-tutorials/learn/a4a... (declarative ad format, no advertiser-written JS)
Re:An iframe from googlesyndication.com tries to access the ...
by hetspookjee on Sunday December 19, 2021 @06:09PM
(#29619513)
Then I don't understand the necessity for javascript in ads?
Re:An iframe from googlesyndication.com tries to access the ...
by jefftk on Sunday December 19, 2021 @06:25PM
(#29619646)
In this particular case, advertisers were not interested in moving to a declarative format, and publishers were not interested in requiring declarative ads. So it didn't end up going anywhere as a general purpose ad format.