1.866.PIXELMILL (1.866.749.3564 US/Canada)

Search Support

Search our knowledgebase? Enter keywords or article id:

> go to search support


Support Index


Help and Support


Search

Go back to search results

Enter keyword or id#:




Promotions


Quick Links

Printable Article

Templates load slowly in UK

Article ID: KB101711

Some of our UK customers have commented that their web site templates load very slowly. The templates seem to load normally for US viewers.

In these cases, changing the way that the stylesheet was loaded seemed to fix the issue. The stylesheet used an @import statement; once the stylesheet was switched to load using a link statement, the site loading speed increased significantly.

If you think that this may be an issue for your web site, please check the source code of your web pages. In the top part of the page, look for where the stylesheet is referenced.

Code that looks something like this is using an @import statement to load the stylesheet: <style>
<!--
@import { url('stylesheet.css'); }
-->
</style>

Delete the line of code that contains the @import statement. If there is nothing else apart from the HTML comment tags, <!-- and -->, you can delete the entire block of <style>...</style> code. If there is other code in between the comment tags, do not delete the rest of the code.

Immediately before the <style>...</style> code (if you didn't not delete it), or in the place where it used to be, add this code to link the stylesheet using the link statement:

<link rel="stylesheet" type="text/css" href="stylesheet.css" />

Make sure that the URL of the stylesheet matches the filename of your stylesheet.

Save and preview the page to ensure that you linked the stylesheet properly.

Repeat this for each page that uses the @import statement to link in the stylesheet.


Was this helpful?

Please rate this article:

Not helpful Very helpful
1 2 3 4 5 6 7

Email address: (not required)

(Please provide your email address if you would like PixelMill support to follow-up with you about your comment. You're email address is NOT REQUIRED to submit a comment.)

Comments: (How can we improve this article?)


Clicking "Submit" will not clear this page.


link to this page: http://www.pixelmill.com/support/al1086/kb101711.htm
permalink to this article: http://www.pixelmill.com/support/kb101711.htm

Back to top

Items you recently viewed:


pm67118prostdl1
$750.00

pm65651fptdl1
$99.00

pm65486fptdl1
$95.00

pm60529rfmdl1
$59.95


PixelMill EDU

Introducing...

PixelMill EDUâ„¢ is an innovative and proprietary online training series designed to aid the do-it-yourself Web builder in transitioning to new Web editors, coding standards, and Web technologies.

Webinars and Seminars:

FrontPage to SharePoint Designer Series
This is a 6-Week series designed to give you strong exposure to the new SharePoint Designer web editor and interface, along with examples of working with Windows SharePoint Services and tips for transitioning from FrontPage.
Register Now!

Tables to Tableless CSS Series
This is a 6-Week series designed to help you transition from building Tables-based Web site layouts to working with CSS to edit and build Tableless Web site layouts. For all Web builders using Dreamweaver, Expression Web, or any other web editor.
Register Now!

FrontPage to Expression Web Series
This is a 6-Week series designed to give you strong exposure to the new Expression Web software and interface, along with tips for transitioning from FrontPage.
Register Now!

Learn more and register!

ADVERTISEMENT
adventisement