Activate Data Layer only after finished Load

Data layers changed a bit during the versions. How does we activate a data layer only when loading is finished? I can get bind event on changed state and check its state but it returns the loading state before the actual level finished loading. Setting up a delay is a workaround, but it makes all the rest pointless.