homepage Welcome to WebmasterWorld Guest from 54.227.215.139
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
JavaScript Processing
What gets processed?
jtoddv

10+ Year Member



 
Msg#: 3289831 posted 3:53 pm on Mar 22, 2007 (gmt 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?

 

Sekka

5+ Year Member



 
Msg#: 3289831 posted 4:13 pm on Mar 22, 2007 (gmt 0)

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

jtoddv

10+ Year Member



 
Msg#: 3289831 posted 4:42 pm on Mar 22, 2007 (gmt 0)

Thank you!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved