Welcome to WebmasterWorld Guest from 54.196.214.35

Forum Moderators: open

Message Too Old, No Replies

JavaScript Processing

What gets processed?

     
3:53 pm on Mar 22, 2007 (gmt 0)

Full Member

10+ Year Member

joined:Aug 22, 2001
posts:245
votes: 0


The page code is ordered as follows:

====================
head
- Typical headers
/head
body
- Script: embedded JavaScript Redirect (window.location.href = URL)
- Script: external JavaScript File referenced in
/body
====================

The question is: Will the external JS file be loaded by the browser and executed before the redirect occurs? Or does the external JS file reference need to be before the embedded JS redirect?

4:13 pm on Mar 22, 2007 (gmt 0)

Full Member

10+ Year Member

joined:Feb 24, 2005
posts:225
votes: 0


The redirect will take effect before the external JS file is loaded.
4:42 pm on Mar 22, 2007 (gmt 0)

Full Member

10+ Year Member

joined:Aug 22, 2001
posts:245
votes: 0


Thank you!