WoWInterface - View Single Post - Library version checking
View Single Post
05-02-18, 02:11 AM   #8
A Pyroguard Emberseer
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,701
Originally Posted by myrroddin View Post
The second thing several library authors forget is that all but three libraries should be loaded on demand. The exceptions being Ace3, LibStub, and CallbackHandler-1.0. For all other libraries, the following line in the .toc ought to be added. It certainly is not critical, but there is no point on loading a library if no addon actually uses it.
Lua Code:
  1. ## LoadOnDemand: 1
This will require every addon that uses the library to handle loading it properly. LoD is not a magic flag that doesn't load the addon unless it's a dependency, it must be manually loaded by another addon to work (which will introduce hiccups for the player as the addon loads, depending on the size of the library).
  Reply With Quote