Offshoot from #345984: Client-side caching of administration menu:

Administration menu should implement hook_js() (http://drupal.org/project/js) for faster AJAX requests. Only when the menu needs to be completely rebuilt, we need a full bootstrap.

Comments

sun’s picture

Status: Active » Needs review
StatusFileSize
new3.73 KB
smk-ka’s picture

Status: Needs review » Reviewed & tested by the community

Works as advertised.

sun’s picture

Status: Reviewed & tested by the community » Fixed

Committed.

Though we probably need to fix:

+      // 'locale' additionally required, but only if enabled.
+      'dependencies' => array('locale', 'devel', 'filter', 'user'),

in js.php itself. IIRC, Locale module resp. locale() breaks when it is loaded without actually being installed.

smk-ka’s picture

Status: Fixed » Needs review
StatusFileSize
new748 bytes

True. We should definitely remove the dependency, because JS is responsible for properly initializing locale, but not modules that make use of JS.

sun’s picture

Status: Needs review » Fixed

Committed to all 3.x branches now. js.php probably needs to be updated for 6.x+, but that's a separate issue.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.