Skip to content

Add async: false setting for +client.js #3004

@dajinchu

Description

@dajinchu

Description

I need to run some JS before DOMContentLoaded.
My options right now are:

  1. write it as plain JS and inject via Head. This works OK until the code gets complex enough / requires dependencies
  2. compile it separately and add inject via Head

It would be ideal if we could set +client.js to not be async.

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