Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Issue in web page

Status
Not open for further replies.

KarthikCMS

Technical User
Jan 31, 2006
1
GB
Hi

In our latest project, we are using CSS based styling in the web pages. When the web pages are requested on the browser, the browser flashes the "raw" html for a moments and then applies the CSS. Can anyone explain why this is happening and what is the work around?

In all the JSP's we are using the following code to look up the css.
<style type="text/css" media="all">
@import url('css/insite_styles.css');
</style>

Thanks in advance

Regards
Karthik
 
IIRC, using import is slower than using <link> command and that is why you might be experiencing some delays. Try it with a link and see if the problem persists:
Code:
<style rel="stylesheet" href="css/insite_styles.css" type="text/css" media="all" />
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top