Wrong Drupal Script Order

Created on 3 October 2024, about 2 months ago

Problem/Motivation

In templates/_base/js/index.html.twig, the order of Drupal core scripts is wrong.

Steps to reproduce

  1. Install and create a module
  2. Create a page that uses Drupal.formatPlural.
  3. Verify that it renders the text properly without error.

Proposed resolution

Change the order:

<script src="/core/misc/drupalSettingsLoader.js"></script>
<script src="/core/misc/drupal.js"></script>
<script src="/core/misc/drupal.init.js"></script>

Remaining tasks

User interface changes

n/a

API changes

n/a

Data model changes

n/a

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States perrygeorget

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024