Page 3 of 3
Re: Speed up your site.. lose {stylesheet}
Posted: Fri Apr 27, 2007 7:43 am
by Russ
Thanks Pierre, but I don't use a seperate results page.
a. If I did would this help?
b. How do I set a page to be non-cachable?
Russ
Re: Speed up your site.. lose {stylesheet}
Posted: Fri Apr 27, 2007 8:17 am
by alby
Russ wrote:
Thanks Pierre, but I don't use a seperate results page.
a. If I did would this help?
Maybe
Russ wrote:
b. How do I set a page to be non-cachable?
In Option tab of page, uncheck Cachable
Alby
Re: Speed up your site.. lose {stylesheet}
Posted: Sat Sep 22, 2007 10:29 pm
by mngujara
thanks! works great for me.
one of my pages went from 15 sec (whoa!) to under 1.8 sec. Amazing, EVEryONE SHOULD DO THIS!!!!!
Re: Speed up your site.. lose {stylesheet}
Posted: Mon Dec 10, 2007 11:58 pm
by nedbenj
This certainly helped to speed up my site too, but I had the same problem with a disappearing header image as this person did:
Henrik,
Tried this plugin, and I nearly got it working; the pictures in the header (placed there by the stylesheet), don't show up. the rest of the page is shown. I removed the plugin, in case you wanted to look. My site iswww.uisge-beatha.eu (
http://www.uisge-beatha.eu)
Regards,
Gregor
He cured his problem like this:
Walking through the hall, I suddenly thought it might have to do with the directory path. In my stylesheet it is:
Code:
background: url(uploads/images/logo_links1.gif) no-repeat 0 0px;
I replaced it with (don't know how to change color inside a code or quote, I placed a / before uploads):
Code:
background: url(/uploads/images/logo_links1.gif) no-repeat 0 0px;
Now it's working

But this doesn't work for me and my header image is still missing. Has anyone else had this problem?
Re: Speed up your site.. lose {stylesheet}
Posted: Tue Dec 11, 2007 7:13 am
by cyberman
Do you have the tag {metadata} between ... ?
Re: Speed up your site.. lose {stylesheet}
Posted: Tue Dec 11, 2007 8:40 am
by nedbenj
Thanks for the reply... yes I do.
Re: Speed up your site.. lose {stylesheet}
Posted: Tue Dec 11, 2007 6:03 pm
by cyberman
Have you tried to change the url path from relative to absolute?
Re: Speed up your site.. lose {stylesheet}
Posted: Tue Dec 11, 2007 6:41 pm
by Pierre M.
nedbenj wrote:
...it might have to do with the directory path. In my stylesheet it is:
Code:
background: url(uploads/images/logo_links1.gif) no-repeat 0 0px;
I replaced it with (don't know how to change color inside a code or quote, I placed a / before uploads):
Code:
background: url(/uploads/images/logo_links1.gif) no-repeat 0 0px;
Now it's working

But this doesn't work for me and my header image is still missing. Has anyone else had this problem?
Hello, I haven't read the CSS spec for some time but I think paths in CSS are relative to the CSS they are in. This is not CMSms specific. maybe something like url(../../myfolder/file.jpeg) can help.
Pierre M.
Re: Speed up your site.. lose {stylesheet}
Posted: Tue Dec 11, 2007 8:41 pm
by nedbenj
Excellent support guys, that's solved the problem.
Thank you very much!
Re: Speed up your site.. lose {stylesheet}
Posted: Wed Jan 23, 2008 11:28 am
by Courty
Hi Guys,
Just rolled out static_stylesheet to a few of my CMSMS 1.2.3 "Black Rock" sites and can't believe the difference it makes..
At least 150% faster right across the board.
you do how ever have to change the default menu style sheets from:
background: url(uploads/images/xxx.gif) no-repeat 0 0px;
to:
background: url(/uploads/images/xxx.gif) no-repeat 0 0px;
adding the leading slash.
Also, on one I forgot to create the /stylesheet/ folder in the root - it really doesn't like that
Courty

Re: Speed up your site.. lose {stylesheet}
Posted: Thu Jan 24, 2008 1:00 pm
by Courty
Got another tip for you..
after adding the {static_stylesheet} fix, my pages were generating in .25 to .5 seconds (which is much better than the 1 second before).
just doing some system work / tidying and ran a MySql 5 table optimize across the whole DB (Google it to see how to do it for your DB).
Page generation is now down to ~.15 secs with the best I've seen so far being about .11 secs for a simple page !
great stuff !!
Courty

Re: Speed up your site.. lose {stylesheet}
Posted: Wed Mar 12, 2008 7:16 pm
by yorgi63
Strange thing this work on a few sites and now on the latest it is not working. Seems that background and the headers will not work. Very strange.
Here is the head tag.
{* Change lang="en" to the language of your site *}
{sitename} - {title}
{* The sitename is changed in Site Admin/Global settings. {title} is the name of each page *}
{metadata}
{* Don't remove this! Metadata is entered in Site Admin/Global settings. *}
{static_stylesheet}
{* This is how all the stylesheets attached to this template are linked to *}
and the style sheet area:
/*****************
basic layout
*****************/
body {
background-color: #0B4E69;
color: #0B4E69;
margin:1em; /* gives some air for the pagewrapper */
}
/* center wrapper, min max width */
div#pagewrapper {
border: 0px solid black;
margin: 0px auto; /* this centers wrapper */
background: url(/images/innerback.jpg);
color:#000;
width: 836px;
}
/*** header ***
we will hide text and replace it with a image
we need to assign a height for it
*/
div#header {
height: 143px; /* adjust according your image size */
background: url(/images/topbanner.jpg);
}
div#header h1 a {
/* you can set your own image here */
background: url(/images/topbanner.jpg)no-repeat 0 12px;;
display: block;
height: 143px; /* adjust according your image size */
text-indent: -999em; /* this hides the text */
text-decoration:none; /* old firefox would have shown underline for the link, this explicitly hides it */
}
Nothing appears until I remove the "static" part and the extra "/". I dropped the "functin" in the plugins area but is there something that needs to come out?
Thanks in advance,
Yorgi