- Home /
Why is it slow slow navigating away from our Facebook app when we implement Application.ExternalEval
We put in this example code in our game which works but it takes about ten seconds to navigate away from our page now. It is the worst in Internet Explorer. Any idea why?
string injection =
"var headerElement = document.createElement('div');" +
"headerElement.textContent = ('Check out our other great games: ...');" +
"var body = document.getElementsByTagName('body')[0];" +
"var insertionPoint = body.children[0]; " +
"body.insertBefore(headerElement, insertionPoint);";
Application.ExternalEval(injection);
Comment
For future questions, please format your code. After pasting, select your code and use the 101/010 button. I did it for you this time.
Your answer
![](https://koobas.hobune.stream/wayback/20220613170210im_/https://answers.unity.com/themes/thub/images/avi.jpg)