I am working on an email that is very very complex with tons of ampscript and SSJS
covering for a lot of different scenarios.
The amount of code is still increasing as we go and it holds calls to both Marketing Cloud, remote json and to SalesCloud.
In several other cases I have been using TreatAsContent()
as I heard that it renders content with less strain for the server.
Would it be a good idea to move the major parts of this enormous code-chunk to a content block instead, and refer to it from TreatsContent()
or could just as well leave as is?
This email is not ever part of a mass send, hence my question. It will be sent in a journey and probably not very many during a day.
...guess I have answered my own question here, but any info on best practice would be appreciated.