I have created a site definition in which I have a series of web scoped features getting activated.
Some of the features are meant to set targetting audiences on webparts, some of them are creating lists to be shown in webparts etc.
What I want to know is; In what order does the site definition create pages, subsites, activate features, run timerjobs etc and what is best practice to ensure the entire workflow runs correctly?