Can you change this to setTimeout(() => callback(markup), 0) ? Add FB we disallow to use the third argument for setTimeout like this.