I am trying to make it so that Doublewide only loads when I open the quest window. I looked at Tekkubs toc for tekablity and modified it, but it doesnt seem to be working. I am guessing that I dont have the right hooks but I doubt know where to find info on that.
This is what I have in the toc:
## LoadManagers: AddonLoader
## X-LoadOn-Hooks: QuestFrame_OnShow
## X-LoadOn-QuestFrame_OnShow: LoadAddOn('DoubleWide')
Saying "it doesn't seem to be working" doesn't really convey any information that might enable anyone to answer your question.
Is the addon being loaded in-game? If you're not sure how to tell, turn on the messages in AddonLoader that inform you when it loads an addon, or open up an in-game addon manger like Ampere and check.
If no, then there's a problem with your hook. I don't know offhand if QuestFrame_OnShow is the correct function name or not. If there is an event fired when the quest log is opened, you would probably want to use that instead of a function hook.
If yes, then it's likely that DoubleWide itself is written in a way that doesn't support on-demand loading, such as making its modifications on an event like VARIABLES_LOADED that only fires once during the initial loading process, long before it would be loaded by AddonLoader.
Either way, the resources consumed by DoubleWide are so miniscule that there isn't really anything to be gained by loading it on-demand.