The My Opera forums have been replaced with forums.opera.com. Please head over there to discuss Opera's products and features
See the new ForumsYou need to be logged in to post in the forums. If you do not have an account, please sign up first.
Incompatiblity with Google Adsense
I had given up on Opera. When I loaded local pages from hard disk it would take over a minute to load. I have not used it in years. I reported the problem at least half a dozen times. Finally, I had an idea and removed the Google Adsense and Google Translate javascript from my pages. BANG! good old speedy Opera was back.Here's the Google-provided code that is killing Opera:
<div class="googleadfoot"><script type="text/javascript"></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>
(there are two ads, on at the top and bottom of each page)
Here is the Google-provided code to arrange language-translation. It should not need to talk to the server unless the user requests translation.
I would hope Opera would cache the script.
<div class="googletranslate"><div id="google_translate_element"></div><script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'en'
}, 'google_translate_element');}
</script>
<script type="text/javascript" src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit">
</script></div>
I suspect these are the problems:
1. Google server is slow. Opera should not hold up rendering the rest of the page while it waits for this script to load and complete.
2. Google script is designed for looking an online pages, not local pages. It does something very time consuming for local pages. It selects an ad based on the page content. Perhaps google spiders pages ahead of time for online pages, and on the fly for local pages.
Even if you can't solve this problem in general, perhaps you could handle these two as a special case.
I have noticed that Chrome works better than other browsers. It boasts a multithread JavaScript engine which might do better even when Google is incompetent.
Roedy Green, http://mindprod.com
For some reason the editor chopped out the core of the script.
Here is it with the < > replace with []
[div class="googleadfoot"] [script type="text/javascript"] [!--
google_ad_client="pub-3625079171090429";
google_ad_width=728;
google_ad_height=90;
google_ad_format="728x90_as";
google_ad_type="text_image";
google_ad_channel="";
google_color_border="336699";
google_color_bg="ffffff";
google_color_link="9d0b21";
google_color_url="226622";
google_color_text="421f00";
// --] [/script]
[script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"] [/script] [/div]
Here is it with the < > replace with []
[div class="googleadfoot"] [script type="text/javascript"] [!--
google_ad_client="pub-3625079171090429";
google_ad_width=728;
google_ad_height=90;
google_ad_format="728x90_as";
google_ad_type="text_image";
google_ad_channel="";
google_color_border="336699";
google_color_bg="ffffff";
google_color_link="9d0b21";
google_color_url="226622";
google_color_text="421f00";
// --] [/script]
[script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"] [/script] [/div]
Roedy Green, http://mindprod.com