Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synchronous XMLHttpRequest on the main thread is depreciated #532

Open
netniV opened this issue Nov 18, 2021 · 1 comment
Open

Synchronous XMLHttpRequest on the main thread is depreciated #532

netniV opened this issue Nov 18, 2021 · 1 comment

Comments

@netniV
Copy link

netniV commented Nov 18, 2021

Chrome is reporting depreciated request usage:

[Deprecation] 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/.

    RequestIntercept = (function(_super) {
        __extends(RequestIntercept, _super);

        function RequestIntercept() {
            var monitorXHR, _this = this;
            RequestIntercept.__super__.constructor.apply(this, arguments);
            monitorXHR = function(req) {
                var _open;
                _open = req.open;
                return req.open = function(type, url, async) {
                    if (shouldTrack(type)) {
                        _this.trigger('request', {
                            type: type,
                            url: url,
                            request: req
                        });
                    }
                    return _open.apply(req, arguments);
                }
                ;
            }

The error appears against the return _open.apply(req, arguments);

@netniV
Copy link
Author

netniV commented Nov 18, 2021

This is appearing whilst using pace as part of https://github.com/cacti/cacti/ project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant