The loading indicator isn't being displayed because it's being initialized too late. Previously, it was just inside the IIFE, not part of any method.