Welcome to WebmasterWorld Guest from 54.226.27.104

Forum Moderators: open

Message Too Old, No Replies

JavaScript Processing

What gets processed?

     

jtoddv

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

10+ Year Member



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?

Sekka

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

10+ Year Member



The redirect will take effect before the external JS file is loaded.

jtoddv

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

10+ Year Member



Thank you!
 

Featured Threads

Hot Threads This Week

Hot Threads This Month