HTML, Scripts and HRefs, etc...

G

Guest

If there is a better forum in which to post this question, please let me know...

I need to know how the src and href attributes are handled in html such as the following:

<script type="text/javascript" src="http://server.company.com/bulletins/dashboard/js/dashboard.js"></script>
<link type="text/css" href="http://server.company.com/bulletins/common/css/common.css" rel="StyleSheet" lang="en" ></link>

Are these resources loaded at the same time as the rest of the page? Are they only loaded when they are requested? (I imagine the css is needed immediately, but the javascript might not be needed untila specfic user interaction.)

Is there a public domain tool I could use to see the full request and response? And see the request and response info for when the css and/or javascript are accessed?

Here's the scenario: I'm trying to write a simple gateway that will allow me to host a web page in a SharePoint web part. This will replace an existing gateway that is proxying the requests now. For basic anchor tags, replacing the href is simple, but I need to understand how the other resources are accessed to see how I can handle those types of requests.

Any insight here is greatly appreciated. Thanks.

J
 
B

bruce barker \(sqlwork.com\)

it depends on the element type. for javascript and css, the parse of the page is stalled the refrences are fetched and read, then parsing continues. for image, object, etc, the downloads are queued and parsing continues. note these will be seperate requests.

-- bruce (sqlwork.com)


If there is a better forum in which to post this question, please let me know...

I need to know how the src and href attributes are handled in html such as the following:

<script type="text/javascript" src="http://server.company.com/bulletins/dashboard/js/dashboard.js"></script>
<link type="text/css" href="http://server.company.com/bulletins/common/css/common.css" rel="StyleSheet" lang="en" ></link>

Are these resources loaded at the same time as the rest of the page? Are they only loaded when they are requested? (I imagine the css is needed immediately, but the javascript might not be needed untila specfic user interaction.)

Is there a public domain tool I could use to see the full request and response? And see the request and response info for when the css and/or javascript are accessed?

Here's the scenario: I'm trying to write a simple gateway that will allow me to host a web page in a SharePoint web part. This will replace an existing gateway that is proxying the requests now. For basic anchor tags, replacing the href is simple, but I need to understand how the other resources are accessed to see how I can handle those types of requests.

Any insight here is greatly appreciated. Thanks.

J
 
G

Guest

So, if the original request required a custom http header with, say, a user name, would the subsequent javascript and css requests require that same header, do you think?

Can you recommend a tool that would allow me to trace the http requests through the existing gateway to the back-end portlet?

Thanks.

J
it depends on the element type. for javascript and css, the parse of the page is stalled the refrences are fetched and read, then parsing continues. for image, object, etc, the downloads are queued and parsing continues. note these will be seperate requests.

-- bruce (sqlwork.com)


If there is a better forum in which to post this question, please let me know...

I need to know how the src and href attributes are handled in html such as the following:

<script type="text/javascript" src="http://server.company.com/bulletins/dashboard/js/dashboard.js"></script>
<link type="text/css" href="http://server.company.com/bulletins/common/css/common.css" rel="StyleSheet" lang="en" ></link>

Are these resources loaded at the same time as the rest of the page? Are they only loaded when they are requested? (I imagine the css is needed immediately, but the javascript might not be needed untila specfic user interaction.)

Is there a public domain tool I could use to see the full request and response? And see the request and response info for when the css and/or javascript are accessed?

Here's the scenario: I'm trying to write a simple gateway that will allow me to host a web page in a SharePoint web part. This will replace an existing gateway that is proxying the requests now. For basic anchor tags, replacing the href is simple, but I need to understand how the other resources are accessed to see how I can handle those types of requests.

Any insight here is greatly appreciated. Thanks.

J
 
W

Walter Wang [MSFT]

Hi,

I think that will depend on the server that handles the request.

I suggest you use Fiddler to inspect the http request:

#Fiddler HTTP Debugger - Configuring clients
http://www.fiddlertool.com/Fiddler/help/hookup.asp
Important: Regardless of other settings, .NET will always bypass the
Fiddler proxy for URLs containing localhost. So, rather than using
localhost, change your code to refer to the machine name.



Sincerely,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top