usehooks-ts
usehooks-ts copied to clipboard
Update useScript.ts
- Make it so we get initial load status on first mount
- Add
cachedScriptStatuses-record for short-circuting & avoiding DOM-lookup
~Potentially, we could have a global Record<string, string|undefined> defined rather than relying on querySelector to make it faster.~