[wp-trac] [WordPress Trac] #65165: Script module dependencies may be unavailable on evaluation

WordPress Trac noreply at wordpress.org
Thu May 14 05:24:31 UTC 2026


#65165: Script module dependencies may be unavailable on evaluation
--------------------------------------+--------------------------
 Reporter:  jonsurrell                |       Owner:  westonruter
     Type:  defect (bug)              |      Status:  accepted
 Priority:  high                      |   Milestone:  7.0
Component:  Script Loader             |     Version:  trunk
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  javascript
--------------------------------------+--------------------------

Comment (by westonruter):

 The latest state of the [https://github.com/WordPress/wordpress-
 develop/pull/11788 PR] is:

 1. A warning is issued when using `module_dependencies` without
 `in_footer` or `strategy=defer`.
 2. The `module_dependencies` arg is removed from the `codemirror` entirely
 in favor of passing the full module URL via the “jshint” config. This is
 because `codemirror` is printed in the `head`, which violates the proposed
 constraint.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/65165#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list