Skip to content

Extension lazy loading #332

@abose

Description

@abose

Extensions should only be loaded as and when required to improve load and memory performance. To enable this, add the following configurations to the extension package.json :

{
  "toolbarIcons": {
   "domID1": ["imageURL", "hoverImage", "active image"],
   "domID2": "imageURL"
  }, // what about hover states, tooltips, translations?
  "commands" : ["command ids and registration info"], 
  "menu items": ["menu items and shortcut info"], // support loc of these strings
  "loadWhen": {
    "fileOpened": ["html", "js"],
    "codeHintsRequested": ["html", "css"],
    "eventTriggered": ["module:eventName1"],
    "domElementClicked": ["domElementId"]
  }
}

extend the current package format: https://github.com/brackets-cont/brackets/wiki/Extension-package-format

Metadata

Metadata

Assignees

No one assigned

    Labels

    coreCore featuresenhancementNew feature or request

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions