Totti Posted October 24, 2013 Share Posted October 24, 2013 When I open the homepage of the site, especially with Chrome, takes a while to load.The following views do not create problems.What are these errors?I enclose a photo. Link to comment Share on other sites More sharing options...
vekia Posted October 24, 2013 Share Posted October 24, 2013 you've got this error code because new browsers (chrome, firefox) don't allow to use mixed content. it mean, that if your website is using https protocol - browser cant load content from http protocol the same if your website use http protocol - it can load contents from https protocol. this is the weirdest thing in modern browsers. Link to comment Share on other sites More sharing options...
Totti Posted October 25, 2013 Author Share Posted October 25, 2013 So I have to disable ssl ? Link to comment Share on other sites More sharing options...
vekia Posted October 25, 2013 Share Posted October 25, 2013 can you show what kind of code you use for your translate plugin? 1 Link to comment Share on other sites More sharing options...
Totti Posted October 25, 2013 Author Share Posted October 25, 2013 (edited) Html box pro with this cose : <meta name="google-translate-customization" content="e0bde3a370929c37-a2d17f6653ae1ec0-g8aacd4ad88d54997-18"></meta> <div id="google_translate_element" style="float:right;"></div> <script type="text/javascript"> function googleTranslateElementInit() { new google.translate.TranslateElement({pageLanguage: 'it', layout: google.translate.TranslateElement.InlineLayout.SIMPLE, autoDisplay: false, multilanguagePage: true, gaTrack: true, gaId: 'UA-XXXXX-1'}, 'google_translate_element'); } </script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> Edited October 25, 2013 by Totti (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted October 25, 2013 Share Posted October 25, 2013 i've noticed in your source: <link type="text/css" rel="stylesheet" charset="UTF-8" href="https://translate.googleapis.com/translate_static/css/translateelement.css" data-inprogress=""> <script type="text/javascript" charset="UTF-8" src="https://translate.googleapis.com/translate_static/js/element/main_pl.js"></script> <script type="text/javascript" charset="UTF-8" src="https://translate.googleapis.com/translate_static/js/element/19/element_main.js"></script> <script id="facebook-jssdk" async="" src="//connect.facebook.net/it_IT/all.js"></script> how it is attached to <header> section? Link to comment Share on other sites More sharing options...
Totti Posted October 27, 2013 Author Share Posted October 27, 2013 i've noticed in your source: <link type="text/css" rel="stylesheet" charset="UTF-8" href="https://translate.googleapis.com/translate_static/css/translateelement.css" data-inprogress=""> <script type="text/javascript" charset="UTF-8" src="https://translate.googleapis.com/translate_static/js/element/main_pl.js"></script> <script type="text/javascript" charset="UTF-8" src="https://translate.googleapis.com/translate_static/js/element/19/element_main.js"></script> <script id="facebook-jssdk" async="" src="//connect.facebook.net/it_IT/all.js"></script> how it is attached to <header> section? No, Top section. Link to comment Share on other sites More sharing options...
vekia Posted October 27, 2013 Share Posted October 27, 2013 so if you are able to change urls there, change them to: //translate.googleapis.com/translate_static/css/translateelement.css //translate.googleapis.com/translate_static/js/element/main_pl.js //translate.googleapis.com/translate_static/js/element/19/element_main.js Link to comment Share on other sites More sharing options...
Totti Posted October 28, 2013 Author Share Posted October 28, 2013 so if you are able to change urls there, change them to: //translate.googleapis.com/translate_static/css/translateelement.css //translate.googleapis.com/translate_static/js/element/main_pl.js //translate.googleapis.com/translate_static/js/element/19/element_main.js <meta name="google-translate-customization" content="e0bde3a370929c37-a2d17f6653ae1ec0-g8aacd4ad88d54997-18"></meta> <div id="google_translate_element" style="float:right;"></div> <script type="text/javascript"> function googleTranslateElementInit() { new google.translate.TranslateElement({pageLanguage: 'it', layout: google.translate.TranslateElement.InlineLayout.SIMPLE, autoDisplay: false, multilanguagePage: true, gaTrack: true, gaId: 'UA-35253754-1'}, 'google_translate_element'); } </script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> Actually in your form I inserted this code only.Then I think the script to create the rest. Link to comment Share on other sites More sharing options...
Totti Posted October 28, 2013 Author Share Posted October 28, 2013 I do not understand why can not load these files. Link to comment Share on other sites More sharing options...
vekia Posted October 28, 2013 Share Posted October 28, 2013 it mean that your script trying to do AJAX query to other domain. It isn't possible to do AJAX queries to domains different than domain of your store. Link to comment Share on other sites More sharing options...
Totti Posted October 29, 2013 Author Share Posted October 29, 2013 it mean that your script trying to do AJAX query to other domain. It isn't possible to do AJAX queries to domains different than domain of your store. So I can not use the script Google Translate ? Link to comment Share on other sites More sharing options...
vekia Posted October 29, 2013 Share Posted October 29, 2013 well, it mean that script trying to load some external sources, but it can't do this. It's not possible to avoid this, but google translate script will work well Link to comment Share on other sites More sharing options...
Recommended Posts