Feature #2
allow specifying whether a script occurring mutiple times should be included multiple times or once
0%
Description
It extension's settings page it is possible to make "script bags" and add scripts to them. A bag can also be added to another bag and be used as a payload for a page. This serves as a way to handle dependencies between scripts. Currently, a script can legally occur multiple times directly or indirectly in a bag. This is not necessarily bad - in some cases we might want a script to be executed several times in a page. Most often, however, we only want it to run once (to declare some function(s) or object(s)) and multiple occurences of it within a bag are simply a result of multiple other scripts depending on it.
Settings page needs enhancement to allow specifying whether a script should be run once or the number of times it actually appears. How exactly to do it is yet to be decided. This will for sure incur adding some more information to script/bag objects kept in storage. background/page_actions_server.js will then need to be edited to respect this new feature when collecting scripts to be loaded.
History
Updated by koszko over 1 year ago
- Status changed from New to Rejected
Not relevant under the new schema