peerlibrary / meteor-peerdb

Reactive database layer with references, generators, triggers, migrations, etc.
http://atmospherejs.com/peerlibrary/peerdb
BSD 3-Clause "New" or "Revised" License
130 stars 15 forks source link

Synchronous XMLHttpRequest warning #36

Closed MatejJan closed 9 years ago

MatejJan commented 9 years ago

Chrome gives me this warning:

Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.

It points to this line in the stacktrace package: https://github.com/peerlibrary/stacktrace.js/blob/master/stacktrace.js#L351

Could it be replaced with something that doesn't give warnings? Not really a big issue, just OCD.

mitar commented 9 years ago

This is only during development. When you deploy (and minimize) you will not have this warning. So in production you do not get a warning.

But during development, if you have an error in fields function, this allows you to get a nice location of it.