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