Works for me too, but if your project gets larger than it loading times change and you may will get a problem that you set the style of something that does not exist yet, thats why i sometimes have to use "wait 0sec".
So its a more safer/cleaner way to use "on created"