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

pwolanin’s picture

Status: Active » Fixed

You 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.

s.daniel’s picture

Thank 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?

Status: Fixed » Closed (fixed)

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