support auto pre-loading for js variants