Closed (fixed)
Project:
JavaScript Libraries Manager
Version:
7.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 May 2012 at 15:39 UTC
Updated:
8 Jun 2012 at 11:21 UTC
Since this module is a replacement for the "paste your js in a bock" workaround it would be great to have the same options that you have for a blocks settings. e.g. (don't) display for
For example: In some cases you only wan't to load js for a certain role, e.g. to improve the ui for editors.
Comments
Comment #1
pwolanin commentedYou can attach a library that's in "disabled" to a block and then use block visibility rules. That way you'll have the advantage of non-blocing loading, even if it's still a bit of the block hack.
Comment #2
s.daniel commentedThank you for your response.
Just to make sure I understand you correctly. With "attach" you mean adding
<script type="text/javascript" src="/path/of/the/file.js"></script>to the block body?