Enh: AddonLoader support (patch included) #82


  • New
  • Enhancment
Open
Assigned to _ForgeUser2025245
  • _ForgeUser405586 created this issue Jul 14, 2013

    What is the enhancement in mind? How should it look and feel?

    ReforgeLite consumes a non-trivial amount of addon memory all the time (about 3MB). It would be nice to load the addon dynamically only when you open the reforging window, thus saving on load time and memory for the vast majority of sessions where you do not reforge.

    This can be accomplished very easily using AddonLoader. All that's required for AddonLoader support is to add the following three lines to the headers in ReforgeLite.toc:

    ## LoadManagers: AddonLoader
    ## X-LoadOn-Events: FORGE_MASTER_OPENED
    ## X-LoadOn-FORGE_MASTER_OPENED: AddonLoader:LoadAddOn('ReforgeLite'); ReforgeLite:OnEvent('FORGE_MASTER_OPENED')
    
  • _ForgeUser405586 added the tags New Enhancment Jul 14, 2013
  • Adirelle posted a comment Aug 18, 2013

    I support this.

    You can also add this line so the slash command works with AddonLoader.

    ## X-LoadOn-Slash: /reforge
    
  • _ForgeUser405586 posted a comment Sep 17, 2013

    Bump - Can you please merge this patch into the release?

    It's a 3-line change that makes a huge improvement for users of AddonLoader, and will not affect other users in any way at all..


To post a comment, please login or register a new account.