This is a hard question because the answer is really dependant on the individual and sometimes the project. Me personally, I like to do a lot of research and world creation prior to the script but that doesn't mean it is the right thing for others. Check out some of the resources under this thread: