TypeSquare Web fonts are applied only to the sentences which are originally written in the text of web pages.
It cannot be applied to sentences added using scripts, etc. after pages have been loaded.
If you choose a Free or a Standard plan, TypeSquare API is not available. As a solution, only in the case that the text added dynamically is specific, you can distribute the Web fonts of the text by placing the hidden text beforehand into a loaded page.