Skip to content

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

@Neved4

Description

@Neved4

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


Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions