Call IIFE From Another Javascript File
问题 I have a file bg.js whose contents is simply an IIFE. I'd like to load this file/call the function in from another function in another file. Since the IIFE is anonymous (it is, right?) I can't call it by name. It seems I have to load the entire file so it executes immediately. I've done searching and found many tutorials and documents about what an IIFE is, but nowhere had I seen how to execute one from another scope. How do I call/load a javascript file that is an IIFE from another