Walterwebb

How can i decrease page loading times on my site?

Asked by Walterwebb 3 years ago loading time load site web


Tim
4

Most Helpful

Most Helpful

 
Try some of the following:
  • Make as few requests to the server as possible
  • Optimise all images to make them small without loosing clarity
  • Use CSS for graphic elements where possible
  • Limited the amount of external server call from the pages (ex external Javascript plugins)
  • Use caching on the server (memecached is good)
Yahoo have a page about best practices for speeding up your website which is worth a read.

by Tim 3 years ago

David Autman
3
 
I think I can help you with that :)

If you want your pages to load much faster, then you can simply have your images preloaded onto your site. This will allow the user to surf through your pages at a faster rate then if they would've had to wait for every image to load.

Preloading Images Using CSS:

#preload-01 { background: Url(http://uploaded.com/image folder/image-01.jpg) no-repeat -9999px -9999px; }
#preload-02 { background: Url(http://uploaded.com/image folder/image-02.jpg) no-repeat -9999px -9999px; }
#preload-03 { background: Url(http://uploaded.com/image folder/image-03.jpg) no-repeat -9999px -9999px; }

Preloading Images Using JavaScript:

<div class="hidden">
    <script type="text/javascript">
        <!--//--><![CDATA[//><!--

            if (document.images) {
                img1 = new Image();
                img2 = new Image();
                img3 = new Image();

                img1.src = "http://uploaded.com/image folder/image-01.jpg";
                img2.src = "http://uploaded.com/image folder/image-02.jpg";
                img3.src = "http://uploaded.com/image folder/image-03.jpg";
            }

        //--><!]]>
    </script>
</div>

SOURCE

by David Autman 3 years ago

Marc Jones
1
 
Not much to add to suggestions above but may be worth looking at Google's page speed addon for firebug which analyses page performance and offers suggestions for improvement: code.google.com Http://getfirebug.com/

by Marc Jones 3 years ago

unregistered
0
 
If you use ASP.NET You can use mscd.codeplex.com :)

by unregistered 2 years ago

unregistered
0
 
1. Set a long cache for any resource you have (let's say a year), then use '?v=1' to control when the browser should get the newest file from the server.2. Use css sprites to the maximum3. Use fixed layouts (this will avoid browser repaint, therefore 'loaded' sense increased)4. Put all css in just 1 file and control pages by <body id='page-[id]'>5. Use a static server for your resources and images (browser won't send cookies, so, lighter calls)6. Use different sub-domains. That will increase the parallel loads.7. Put the content of your html before the header. This will increase the sense of 'loaded'

by unregistered 2 years ago

Webtechwise
0
 
Use shorthand CSS and make sure there are not more than 2 selectors in a rule bit.ly

by Webtechwise 2 years ago

unregistered
0
 
Depending on the framework you are using:
- Use tools to combine and compress multiple CSS and JS file
- Host your images on a CDN like Amazon
- Use wellformed AND valid XHTML - it really makes a difference!
- If you have static pages, use Tidy to strip white space (can also really improve loading times)
- Do profiling on Javascript that is run before the page load is completed.

And Google for many more tips! ;-)

by unregistered 2 years ago

Heri Setiawan
0
 
You can also use this tool for website optimization: spritegen.website-performance.org

by Heri Setiawan 3 years ago

Patrick
0
 
Optimize the images.

by Patrick 3 years ago

haRacz
1
 
Check this site
www.phpied.com

by haRacz 2 years ago

Answer this question

How can i decrease page loading times on my site?

0 errors found:

 
0