Mozilla Firefox crashes on translation of language
<p>I'm using google translator API to translate the text of website. But when I change the language to translate the content, browser (Mozilla Firefox) crashes (this happens only in case of Mozilla Firefox). I tried to find out the issue but everything seems okay. Help me to resolve this issue.
The code I used is below:</p>

<pre><code>&lt;script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit" type="text/javascript"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
    function googleTranslateElementInit() {
        new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE, autoDisplay: false}, 'google_translate_element');
    }
&lt;/script&gt;
&lt;div id="google_translate_element"&gt;&lt;/div&gt;
</code></pre>