HooLIGUN Posted October 7, 2016 Share Posted October 7, 2016 Здравствуйте.Появились какие то ошибки в консоле браузера.Не могу понять в чем проблема, как исправить?http://i85.fastpic.ru/big/2016/1007/85/3df6ad089040511c3c8674cac3224885.png A Parser-blocking, cross-origin script, http://ajax.googleapis.com/ajax/libs/scriptaculous/1.8/effects.js, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity. scriptaculous.js?load=effects,dragdrop,builder:31 A Parser-blocking, cross-origin script, http://ajax.googleapis.com/ajax/libs/scriptaculous/1.8/dragdrop.js, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity. scriptaculous.js?load=effects,dragdrop,builder:31 A Parser-blocking, cross-origin script, http://ajax.googleapis.com/ajax/libs/scriptaculous/1.8/builder.js, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity. 2jsapi:22 A Parser-blocking, cross-origin script, https://www.google.com/uds/?file=search&v=1, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity. 2jsapi:22 A Parser-blocking, cross-origin script, https://www.google.com/uds/api/search/1.0/33c7bfb92330999684a54e63dca8bb29/default+ru.I.js, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity. Link to comment Share on other sites More sharing options...
HooLIGUN Posted October 7, 2016 Author Share Posted October 7, 2016 И еще почему то Mixed Content: The page at 'https://www.rgmix.eu/' was loaded over a secure connection, but contains a form which targets an insecure endpoint 'http://www.rgmix.eu/index.php?app=core&module=search&do=search&fromMainBar=1'. This endpoint should be made available over a secure connection.Форма поиска через http идет. Link to comment Share on other sites More sharing options...
siv1987 Posted October 7, 2016 Share Posted October 7, 2016 Не могу понять в чем проблема, как исправить?Если вкратце, то гугл хром может блокировать скрипты встраиваемые через document.write. Динамические добавляемые скрипты должны встраивается через метод .appendChild. if(!window.jQuery){ var script = document.createElement("script"); script.src = 'https://www.rgmix.eu/public/style_images/rgmix/js/jquery.min.js'; script.onload = function () { jQuery.noConflict(); }; document.getElementsByTagName("head")[0].appendChild(script); } И еще почему тоФорма поиска через http идет.Все встраиваемые элементы и формы на https странице должны подключатся через протокол https. Link to comment Share on other sites More sharing options...
HooLIGUN Posted October 7, 2016 Author Share Posted October 7, 2016 Куда это вставить? Про встраиваемые элементы я знаю, было всё норм, но после переезда теперь почему то ссылка не меняетсяВот эта ссылка в шаблоне<form action="{parse url="app=core&module=search&do=search&fromMainBar=1" base="preferHttps"}" method="post" id='search-box' > Link to comment Share on other sites More sharing options...
siv1987 Posted October 7, 2016 Share Posted October 7, 2016 base="preferHttps"Удалить или заменить на base="public". Куда это вставить?Это пример подключения динамического скрипта библиотеки jquery. Смотрите где у вас скрипты подключаются через document.write и переделайте согласно рекомендациям гугла по примеру выше. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now