473,396 Members | 1,982 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

need help regarding html title

In my application, while loading the page, the title of page is displaying total filepath. Even if explicitly set the title also, before loading the page , path is displayiing as title. once the page loaded , then only the customized title is displaying.

Could you please help me out,that how could we change the title of the page , before loading the page?
Jan 7 '08 #1
3 1158
A quick test indicates that FF2, IE6, and IE7 all display the title as soon as it gets that far in the HTML. I recommend you move the title to be the 4th line of your document right after <!DOCTYPE>, <html>, and <head>.

If this is a dynamic script (PHP, ASP, JSP, etc) make sure that you output the title as soon as you get there. Sometimes scripts will build up large chunks of the page before it actually sends them to the browser. For example, if you are using PHP, you can put a <?php flush(); ob_flush(); ?> right after the title to force PHP to sent the title as soon as possible.

It will still display the filename but not for very long. A faster server, or geolocated servers are probably about the only other thing you can do to reduce time it displays the filename for.

Also I don't know for sure but using proper XHTML, with a strict doctype, should allow the browser to parse it faster, but I doubt it would help anyone besides Firefox, and only if you were serving your pages with a server-side header of application/xhtml+xml which is it's own whole can of worms.

Also what makes the page take so long to display that you notice this? Is it a long running server script, or a big html file, or just a slow (free/cheap hosting) server? Maybe a little more information could help, us help you. Let me know what you find out.
Jan 8 '08 #2
numberwhun
3,509 Expert Mod 2GB
In my application, while loading the page, the title of page is displaying total filepath. Even if explicitly set the title also, before loading the page , path is displayiing as title. once the page loaded , then only the customized title is displaying.

Could you please help me out,that how could we change the title of the page , before loading the page?
Also, if you could post your code next time, that would help with troubleshooting.

Regards,

Jeff
Jan 8 '08 #3
Oh, one more idea. You could use an iframe or a frameset to load one simple page (with a title), that then loads the longer loading page in a frame. Not very clean, but it might help depending on your particular situation.
Jan 8 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

25
by: Steal | last post by:
Hi at all I try to validate this page using the link: http://validator.w3.org/ but it return that this is not a valid HTML 4.01 page please where is it error? Steil <!DOCTYPE HTML PUBLIC...
7
by: ÀÏÆÅ»³ÔÐ5¸öÔ | last post by:
I want use dropdownlist contral in gridview but have trouble now mycode here: i'm very sorry for my poor english <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"...
1
by: Irshad Ahmad | last post by:
Hi, I am developing an Web application in ASP.NET with C# .when i run the project on local machine i.e localhost the default page get loaded. when i view its source code i get : <!DOCTYPE HTML...
1
by: Cat | last post by:
Hello, maybe someone can help me here.. I was looking for a bookmark script to implement on my website. Actually I always thought such scripts are pretty obsolete but I do have a frame page...
5
by: dmorand | last post by:
I'm having an issue with my layout, and am looking for some advice. The layout looks fine until the user changes the font size in the browser. Then my footer and navigation bar push down to another...
2
by: onlymukti4u | last post by:
Hi, I am facing a problem for the allignment of the submenus under same line with the menu. Actually after clicking the menus the submenus should come exactly under same line with the menu but it...
1
by: onlymukti4u | last post by:
Hi, I am facing a problem for the allignment of the submenus under same line with the menu. Actually after clicking the menus the submenus should come exactly under same line with the menu but it...
1
by: vikjohn | last post by:
I have a new perl script sent to me which is a revision of the one I am currently running. The permissions are the same on each, the paths are correct but I am getting the infamous : The specified...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.