Skip to content

Defer breaks autoload (when loading page without having resources cached) #2102

@BrainStone

Description

@BrainStone

Information:

  • Prism version: 1.17.1
  • Plugins: autoloader
  • Environment: Browser

Description
When the page is loaded without the JS resources being cached and the scripts are marked with defer then the syntax highlighting is not applied.

Example
Without defer (workking): https://jsfiddle.net/f5vj903e/
With defer (not working): https://jsfiddle.net/f5vj903e/1/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions