Jump to content

Ошибки с js в ipb 3.4.8


HooLIGUN
 Share

Recommended Posts

Здравствуйте.

Появились какие то ошибки в консоле браузера.

Не могу понять в чем проблема, как исправить?

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

И еще почему то

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

Не могу понять в чем проблема, как исправить?

Если вкратце, то гугл хром может блокировать скрипты встраиваемые через 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

Куда это вставить?

 

Про встраиваемые элементы я знаю, было всё норм, но после переезда теперь почему то ссылка не меняется

Вот эта ссылка в шаблоне

<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

base="preferHttps"

Удалить или заменить на base="public".

 

 

Куда это вставить?

Это пример подключения динамического скрипта библиотеки jquery. Смотрите где у вас скрипты подключаются через document.write и переделайте согласно рекомендациям гугла по примеру выше.

  • Upvote 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...