Resolved customConfig reace by creating scriptLoader.queue().
Fixed scriptLoader#queue getting stuck after the first time used.