Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By nod_ on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Issue links:
Description:
Instead of using jQuery to execute Drupal.attachBehaviors()
, the domready library is used. It means that drupal.js file does not need jQuery to be loaded.
This is the amount of JS (minified, ungzipped) needed to be able to use Drupal.announce()
:
Before
announce.js (682 bytes) + jQuery 2 (82 KiB) + drupal.js (2.3 KiB)
After
announce.js (682 bytes) + domready (740 bytes) + drupal.js (2.3 KiB)
Impacts:
Site builders, administrators, editors
Module developers