Fixed
Project:
Flag
Version:
5.1.x-dev
Component:
Flag core
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Oct 2026 at 14:56 UTC
Updated:
7 Oct 2026 at 15:33 UTC
Jump to comment: Most recent
On pages where a flag field is displayed, users who do not have permission to flag still download the flag library's JS files and their dependencies, even though no flag link is rendered for them.
Expected behavior: no flag JavaScript is loaded, since there is no flag link on the page.
Current behavior: flag-action_link_flash.js and its dependencies (like jQuery) load.
Attach the library only when the flag link is displayed.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #5
ivnishThanks, fixed