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

Chromium: XMLHttpRequest.open() warning with local includes #1007

Open
Neved4 opened this issue Jun 11, 2020 · 1 comment
Open

Chromium: XMLHttpRequest.open() warning with local includes #1007

Neved4 opened this issue Jun 11, 2020 · 1 comment

Comments

@Neved4
Copy link

Neved4 commented Jun 11, 2020

Affects Asciidoctor.js Live Preview 2.6.0.1 and previous 2.5.0 in Chromium-based web browsers.

Description

Using the include::file.adoc[] declaration in a document will trigger several warnings. It does not prevent proper display of the document.

Steps to reproduce

  1. Try to preview a file that includes a different one
= My Document

include::file.adoc[]

Details

Error Message

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

Context

_generated_background_page.html

Stack Trace

js/vendor/asciidoctor.js:19990 ($read)

19990   xhr.open('GET', path, false);

Relevant Lines

Possibly Related

#630, #644

Attachments

Screenshot


@ggrossetie
Copy link
Member

Unfortunately, we cannot use an asynchronous XMLHttpRequest because the code of Asciidoctor.js is transpiled from Ruby and the code has to be synchronous.

This issue will most likely be fixed in the upcoming JavaScript compatible implementation of the AsciiDoc specification.

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

No branches or pull requests

2 participants