You may need to be patient at Shanghai Pudong International - many travelers have noticed that flights leaving the airport are often delayed and there usually long lines at Security and Immigration.
Be sure to bring some reading material or download a game to pass the time.