This is a discussion on Website Performance Tips & Tricks within the Web Design Help forums, part of the Web Development category; Things to do,to make web sites faster There are some well-known general best practices you can follow to ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Things to do,to make web sites faster There are some well-known general best practices you can follow to overcome some of these technical and human factors and ensure a quick response web site: * Optimize all the HTML and dependencies as much as you can without losing quality (this can include stripping the HTML documents of any comments and superfluous linebreaks, which should be part of the publication process. In order to keep sites maintainable you still need those in the source documents) * Reduce dependencies by using the least amount of file includes (collate several scripts into one include, use CSS sprite techniques to load all images at once) * Make sure that you don’t include third-party content from their servers: set up a script that caches RSS feeds locally and use that one instead. The benefit is not only that you don’t have to deal with the DNS server delays but you are also independent of the other server should it go down. * If possible, define dimensions for images and their container elements. This will ensure that the first rendering of the page will be correct and there won’t be any “jumping around” when the images are loading. * Include large dependencies such as massive scripts at the end of the document, as this means that the rest of the page gets shown before the browser loads them. Large JavaScript includes in the head of the document mean that the browser waits with rendering until they are loaded. thanks, venkatbi |
| Sponsored Links |
| |||
| Website Performance Tips Image Related - I:
__________________ J.Vijayanand |
| |||
| Keep Cookies Small Your cookie is sent back to your server every single time the user makes a request for anything. Even with Images, JS, CSS requests or AJAX the cookie is sent. A typical HTTP request will have between 500-1000 bytes. Now, if you have 4 cookies each with names like "user_name" followed by a value with 30 characters, you are adding 15-30% more bytes to the request. thanks, venkatbi |
| |||
| Website Performance Tips: Image Related - II
__________________ J.Vijayanand |
| |||
| Splitting up long pages:- If a page has very vast number of data's, better thing is to split up into multiple pages. Because, the load time for a long page is larger and it shows some blank screen until the page loads fully. So, by splitting up the long page into multiple pages,loading the page faster, and it attracts the user seeing that page.
__________________ Regards, VELHARI I am not totally useless. I can be used for a bad example |
| |||
| Avoid Tables (or use fixed-layout tables): Rendering a table is probably the worse nightmare for a browser. If the browser starts showing the table before all the content inside it is loaded, the browser's rendering engine will have to re-render it many times as each piece is loaded. On the other hand, if the browser needs to wait for everything to be loaded, the user we see a blank page (or partially blank) for a few seconds. Browser's usually use a combination of both to reduce the number of re-renderings without leaving the user hanging in there. The point is, don't make your whole page start with a table. It is preferrable to have 3 tables (header, body, footer). Whenever possible, just avoid using tables altogether. And, better yet, set the default CSS properties of all tables to fixed-layout: table { table-layout: fixed } If you do that, you must sure that you always set the table width and the columns width. thanks, venkatbi |
| |||
| Watch for Memory Leak The biggest problem with browser's memory leak is that it doesn't affect only the page that created the leak, it affects every single page from any site after that. Internet Explorer is notorious for its massive memory leaks (becase of poor JavaScript). There are a few tools on the Internet to find out if your script is causing memory leak and where. The easiest test is to load your page 100 times and watch PerfMon to see if the Working Set is growing or not. The most simple thing that you should do is to unbind every event that you bound to (dynamically), and to release every reference possible (this also helps the JavaScript garbage collector to be faster). thanks, venkatbi |
| |||
| Using Memcache There are lots of ways to scale a web application, from throwing hardware at it, to optimizing database queries. I’ve been hearing a lot, however, about a software program called Memcached. When to use Memcached Memcached is great for dynamic database driven websites that retrieve data again and again from a database. Reading the same data over and over again from the database is a waste when you can store it in memory and use it from there. Even if the data gets updated fairly often, storing a cached version in memory for only 10 seconds can be highly effective if you get several pageviews during that period of time. And unless someone is saving data (at which point you’d automatically update the cache), nobody is going to notice that the data is 10 seconds delayed. thanks, venkatbi |
| |||
| Website Performance Tips: Image Related - III
__________________ J.Vijayanand |
| |||
| Website Performance Tips: HTML Related - I
__________________ J.Vijayanand |
| |||
| Website Performance Tips: HTML Related - II
__________________ J.Vijayanand Last edited by vijayanand : 08-28-2007 at 12:53 AM. |
| |||
| Website Performance Tips: HTML Related - III
__________________ J.Vijayanand |
| |||
| Website Performance Tips: HTML Related - IV
__________________ J.Vijayanand |
| |||
| Website Performance Tips: Database Related
__________________ J.Vijayanand |
| |||
| Website Performance Tips:
__________________ J.Vijayanand |
| |||
| Website Performance Tips
__________________ J.Vijayanand |
| |||
| performance tips: If you have made efforts to boost the performance by optimizing your queries and your application code, there are number of server-level and language-level tunings for high-traffic websites (OS, MySQL, hardware related) that you (or your host admin) can try to ensure that an application performs at its best. *Use the latest stable MySQL version. There are enough things that run faster on MySQL 4.x and later versions (improved SQL query optimizer behaviour, query cache if enabled, SQL_CALC_FOUND_ROWS option, full-text indexing, more efficient SQL syntax in some cases, etc., thanks, venkatbi |
| |||
| Avoid Redirects Redirects are accomplished using the 301 and 302 status codes. Here's an example of the HTTP headers in a 301 response: HTTP/1.1 301 Moved Permanently Location: http://example.com/newuri Content-Type: text/html The browser automatically takes the user to the URL specified in the Location field. All the information necessary for a redirect is in the headers. The body of the response is typically empty. Despite their names, neither a 301 nor a 302 response is cached in practice unless additional headers, such as Expires or Cache-Control, indicate it should be. The meta refresh tag and JavaScript are other ways to direct users to a different URL, but if you must do a redirect, the preferred technique is to use the standard 3xx HTTP status codes, primarily to ensure the back button works correctly. The main thing to remember is that redirects slow down the user experience. Inserting a redirect between the user and the HTML document delays everything in the page since nothing in the page can be rendered and no components can start being downloaded until the HTML document has arrived. One of the most wasteful redirects happens frequently and web developers are generally not aware of it. It occurs when a trailing slash (/) is missing from a URL that should otherwise have one. For example, going to http://www.discussweb.com/web-design-help results in a 301 response containing a redirect to http://www.discussweb.com/web-design-help/ (notice the added trailing slash). This is fixed in Apache by using Alias or mod_rewrite, or the DirectorySlash directive if you're using Apache handlers. Connecting an old web site to a new one is another common use for redirects. Others include connecting different parts of a website and directing the user based on certain conditions (type of browser, type of user account, etc.). Using a redirect to connect two web sites is simple and requires little additional coding. Although using redirects in these situations reduces the complexity for developers, it degrades the user experience. Alternatives for this use of redirects include using Alias and mod_rewrite if the two code paths are hosted on the same server. If a domain name change is the cause of using redirects, an alternative is to create a CNAME (a DNS record that creates an alias pointing from one domain name to another) in combination with Alias or mod_rewrite. Thanks, Ramkumar.B |
| |||
| Website Performance Tips: IIS Tricks
__________________ J.Vijayanand |
| |||
| Website Performance Tips: IIS Tricks - II
__________________ J.Vijayanand |
![]() |
| Thread Tools | |
| Display Modes | |
| |
LinkBacks (?)
LinkBack to this Thread: http://www.discussweb.com/web-design-help/3182-website-performance-tips-tricks.html | |||
| Posted By | For | Type | Date |
| comp.theory | Google Groups | This thread | Refback | 09-15-2007 12:21 AM |
| Perfomance Tunning - comp.theory | Google Groups | This thread | Refback | 09-06-2007 10:16 PM |
| Mortgage Calculators - calculators mortgage leads, cost calculators mortgage | This thread | Refback | 09-06-2007 09:43 PM |
| Web Link | This thread | Refback | 09-06-2007 02:38 AM |
| Discussions - comp.theory | Google Groups | This thread | Refback | 09-05-2007 02:17 AM |
| comp.theory | Google Groups | This thread | Refback | 09-05-2007 01:19 AM |