PDA

View Full Version : Browser warnings?


spillage
11-17-2017, 12:02 AM
I have a member raising concern about his browser (Chrome) giving him these two warnings.


private.php:41
A Parser-blocking, cross-origin script, http://ajax.googleapis.com/ajax/libs...n-min.js?v=425, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity. See https://www.chromestatus.com/feature/5718547946799104 for more details.

ckeditor.js?v=425:138
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.


I'm up to date with vB4.2.5
Any thoughts on this?

Dave
11-17-2017, 12:39 AM
Nothing critical, it just happens because of certain outdated libraries that vBulletin 4 uses which modern browsers don't really like to be used anymore.

Bestrafung
01-09-2018, 03:04 PM
I've also seen several website performance tools and articles claim the document.write is slowing the site drastically. I'm not sure how true this is but if so, is there an easy way to replace all of the instances of document.write to not only speed up the site but to also make the browser happy? It seems like the majority of the scripts used by vbulletin could probably just be deferred in the footer, with the exception of the jquery ordering. Please correct me if I'm wrong.

Dave
01-09-2018, 03:06 PM
It doesn't drastically slow the site in vBulletin's case, it only makes a few calls to it as far as I know which is fine.

Bestrafung
01-09-2018, 03:25 PM
It doesn't drastically slow the site in vBulletin's case, it only makes a few calls to it as far as I know which is fine.

Ok, thanks for the info. I'm going to be optimizing the site and I was concerned about it affecting load times. The tools must be wrong. I looked at the source and there are only 4 document.writes on CMS and 5 on forums.