Loader refactored to avoid duplicate requests for the same module