A module that wants to provide a different behavior and representation for contextual links will have a performance impact, because the JS/CSS cannot be altered once.

Just make it a library and the issue is resolved.

I already had this in mind when doing the original implementation, but somehow, I forgot.

CommentFileSizeAuthor
drupal.contextual-links-library.patch1.2 KBsun
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

RobLoach’s picture

Status: Needs review » Reviewed & tested by the community

Simple and elegant. Like sun said, having this allows contrib modules to change how the contextual links look/work.

sun’s picture

I want this to get in before doing #626286: Make contextual links a module

Bojhan’s picture

How can you forget? Jeez :'D

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Makes sense to me.

Committed to HEAD.

Status: Fixed » Closed (fixed)
Issue tags: -Contextual links

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