News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

deprecated JavaScript in info center/stats script.js

Started by oOo--STAR--oOo, July 04, 2016, 02:47:17 AM

Previous topic - Next topic

oOo--STAR--oOo

Hey, in the info center, stats when you expand and collapse the months to view the days stats, you get a warning in console

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/.

Which points to this link

oMyDoc.open('GET', sUrl, bAsync);
You only seem to get the warning when collapsing the months...

This warning even exists on this forum.
You can't fool a sufficiently talented fool.

http://www.uniquez-home.com
In Design Phase!

Mods I am designing,  No refresh Collapse Categories , Poll Redesign , Pure CSS Breadcrumb , Profile Statuses, Profile Views.

forumfan32

I had this problem about a month ago. Simple Machines only allows you to do async http requests.

Matthew K.

This should really be using an AJAX endpoint if anything. Jeez the code is old. How I would love to make a fork.

Antes

Quote from: Matthew K. on August 24, 2016, 07:01:01 PM
This should really be using an AJAX endpoint if anything. Jeez the code is old. How I would love to make a fork.

We always welcome the patches.

live627


Advertisement: