homepage Welcome to WebmasterWorld Guest from 54.227.77.237
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
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




msg:3289833
 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




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

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

jtoddv




msg:3289914
 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