One thing that's been hurting me is my site's long load time. I don't notice it because my internet action is so fast here, but on slower dialups, it's ridiculosuly slow. I tried changing pictures to .gif but the quality lost is too much. What can I do? http://www.bipolarnation.com
Those pictures are PNG, either try making them smaller lesser quality PNGS, or jpeg, jpeg is generally the smallest/best quality for photos, if you use fireworks, just export it and set quality to about 70 or 80, works ok for me, you should end up with like 15kb instead of 100
I always use "microsoft picture manager" to make images smaller in size. The "fireworks export html" also works good like fhirzall said.
It may help a bit if you move the css style sheet to an external file. Your site is loaded with all sorts of things. It may help by taking some of the stuff off to speed up the download time. Having too much stuff can easily get visitors distracted.
I switched the files over to .jpg's. As for all of the stuff on my site, it's mostly ads. The only extra stuff are the newsfeed and the site ranking. I want to have pictures, because like at a news site, at least there's something to look at. I don't have that program you're talking about either, unless it's included on computers automatically and I just didn't find it. Thanks for the help!
BTW, with the change to .JPG's, there appears to be no help in load time. They're like the same as .PNG's.
that picture on the front is only 12KB now, i recall it was around 80kb I think. change the video thumbnails on the left to jpg too, those should go down another few KB, move the CSS you have to the external file. That should make it load a little bit faster.
There. I pretty much revamped it today. In the future I want it to look like a blog. I want it to kind of resemble http://www.dailykos.com - any other ideas how I can achieve that?
Yes, that would help BIG TIME. Once the css is cached, it can be used on all subsequently viewed pages without re-downloading. Also, if your web server supports it you might consider using GZIP page compression. If you're using PHP, just put this at the top of your page <?php ob_start('ob_gzhandler'); ?> Code (markup):
Instead try using .htaccess adding this: <ifModule mod_php4.c> php_value zlib.output_compression 16386 </ifModule> Code (markup): However make sure your are not using <?php ob_start('ob_gzhandler'); ?> within single files at the same time or you will get an error message. Compression can only be setup once, either way
Again, I apologize for my ineptitude, but it looks like you're speaking pig latin to me. How does this consolidate a file for me?
Put this in the <head> section of your document... <link rel="stylesheet" type="text/css" href="styles.css" /> Code (markup): and replace "styles.css" with the filename of your stylesheet.
Hi Dan, it's like this. When you put this line at the top of your .php file... It's basically saying "compress this file (if the client supports it)" to your webserver. When your web browser (also called a "client") sends a request to your web server (to download a webpage) it tells the webserver which types of files (also called "encodings") it can understand. Newer browsers support a special type of encoding called "gzip". If your browser supports this type of encoding, it will send the webserver this command... in its headers as it goes to request the document. When your webserver sees that command and you have enabled compression in your pages (using the "ob_start('ob_gzhandler');" line), the webserver knows to send a gzip-compressed version of your page. GZIP compression is similar to regular ZIP compression (i.e. WinZip). It is used to compress (or "squeeze") files down into a smaller size, and allows you to un-compress (or "expand") them later. When the client (your web browser) receives that compressed version, it automatically decompresses it and displays it to you. It doesn't tell you it's doing it, it just does it. To the end user, the page itself appears as usual and it seems like nothing different has happened, but in fact much less data (bandwidth) has been transferred because it's literally a fraction of its size. You can often compress a 50KB - 60KB file down to maybe 10KB - 15KB. It's a real lifesaver to have.
I'm assuming you're talking about the main page of your site, not the main page of your forums? If so you can just rename it to "index.php". When your web server goes to deliver a page to a client (a.k.a. your web browser) it first looks at the extension of the file and asks itself "do I need to parse (or interpret) this file first and execute any special instructions that I find inside or do I just send it to the client as is?" If the file ends in .php, it knows to scan the file and look for any php instructions that are inside, but if it ends in .htm, for example, it just says "oh, that's just a static HTML file, I don't need to do anything with that, I'll just send it as is to the client". There is a way you can get your web server to intrepret .htm (and .html) files as .php files but it requires editing your .htaccess file. If you're interested in doing that you can add this to the top of your .htaccess file... AddType application/x-httpd-php .php .html .htm Code (markup): or if that doesn't work you can try this... AddType x-httpd-php .php .html .htm Code (markup):
Hello, Dan Kenitz. Styles used in an HTML page can be specified in the file of the page (that is, the .html file), or they can be gathered in a separate file that usually has the extension "css." In the HTML file, styles are written in the HEAD section, so you will see something like this on your file: <style type="text/css"> <!-- .news {color: #0099FF} --> </style> To move the styles to a CSS file, you have to copy all that is within the comment marks to a text file, and name it with the extension "css" (for example, "mystyles.css"). In this case, you will copy only the line that says .news {color: #0099FF} Next, you have to delete the STYLE tag and its contents, and replace it with the following: <link rel="StyleSheet" type="text/css" href="mystyles.css">
Hi all, does this feature gzip come with a server, or do you ask them if they support it and then place some code in? Thanks guys