Write teaser network and suffer a little in doubt:
on the advertising site comprises a type code
which of course already loads a complete JS-code to generate a teaser block.
So I think — to convey to the client already rendered block (the logic in php), or to give only the block data in e.g. JSON format, and render it by means of JS (logic in JS)?