Giter Site home page Giter Site logo

Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. about exceptionless.javascript HOT 6 CLOSED

exceptionless avatar exceptionless commented on May 28, 2024
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience.

from exceptionless.javascript.

Comments (6)

niemyjski avatar niemyjski commented on May 28, 2024

We use trace kit (https://github.com/csnover/TraceKit, which we help maintain) which is causing this message.

https://github.com/csnover/TraceKit/blob/master/tracekit.js#L401

This library supports everything back to IE6. Perhaps we need to look into a better way to lookup the source method or disable this functionality behind a flag (it's trying to look up the source so it can get line numbers).

from exceptionless.javascript.

niemyjski avatar niemyjski commented on May 28, 2024

I'm not sure what all we could do except for updating this library. The problem is, this library doesn't support promises because it has to work in every browser so it's always going to be a sync request. I wonder what would be best here. If there is a way to do this with a different api. Is there any chance you could look into this?

from exceptionless.javascript.

leidegre avatar leidegre commented on May 28, 2024

Absolutely, I'll keep this open and look at it from time to time. I don't have a window right now but I'll get back to it.

from exceptionless.javascript.

santiagomolinadecastro avatar santiagomolinadecastro commented on May 28, 2024

How can i make Synchronous XMLHttpRequest? I need make my call sync. Are there alternatives? It was deprecated in XMLHttpRequest. Thanks!

from exceptionless.javascript.

niemyjski avatar niemyjski commented on May 28, 2024

I'm not aware of any, I know there are warnings currently about it being deprecated.

from exceptionless.javascript.

niemyjski avatar niemyjski commented on May 28, 2024

We just merged in our 2.0 rewrite and I'll be updating the readme and then cutting a release. Is there any chance you could try out the 2.0.0-beta when we tag it. We've made fetch the default implementation and also implemented source maps.

from exceptionless.javascript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.