Tag Info

Hot answers tagged

31

Yes, there is almost no reason I can think of to not use GZIP at all times. It's like getting free bandwidth, and it is universally supported. Always have it on! The only possible downsides are If you are on a shared host with very limited CPU resources, as the compression is done on the server and it does take a tiny bit of server CPU. The server would ...


29

Document.ready waits for the DOM to load before running any JavaScript (http://www.learningjquery.com/2006/09/introducing-document-ready). The idea of putting it at the bottom, means that if your JS is having issues or the person has a slow connection, the rest of the page still loads first, and doesn't "hang". The JS still runs when everything has loaded, ...


25

There are 4 things you can do. Minify your JS File. This removes all comments and Whitespace to reduce its size. Combine your JS Files on each page so that there is only 1 file. Use a package to gzip your files when you send them. This will make them even smaller Put Javascript that isn't required immediately at the bottom of the page so that it loads at ...


21

If you are using common libraries (such as jQuery, Prototype or Dojo), you can offload the file to Google and make them serve it, this gives you several advantages: You don't have to worry about minifying and zipping etc It's not your bandwidth These files come from a different domain, so you can (at least partially) workaround the limit of 2 parallel ...


20

FireFox Throttle is a FireFox extension that should do it. Sloppy is a proxy which slows down your connection so it should work across browsers. Source: http://www.devcurry.com/2010/07/simulate-slow-internet-connections.html MODERATOR EDIT 2013-02-02 This extension is no longer available.


19

Fiddler Web Debugger is an excellent HTTP proxy debugging tool for Windows that includes a modem speed simulation feature (Main menu > Rules > Performance > simulate modem speed). Fiddler is freeware. I also like Charles Web Debugging Proxy, a similar tool. Charles can also throttle the connection speed. Charles is commercial software, but has a free ...


19

Google wants to provide its user base with the best experience possible when browsing the web - this is what retains their customers. A poor page load speed can have a serious effect on user experience, that is arguably the main reason Google sometimes ranks these sites less favorably. It is also an indication that the site isn't perhaps maintained to a ...


18

Someone is going to say that the markup should be Gzipped, so I might as well be the one. Here's a lengthy explanation of what Gzip is with links on how to set it up on Apache and IIS. An article on WebReference states that you'll find the following performance gains when using the mod_gzip Apache module. Webmasters typically see a 150-160% increase ...


17

#BestQuestionEver =) I'm the developer of the site so I should be able to answer most of these questions You brought up some interesting points. In terms of backend (Backend is rarely the source of bottle-necks in page loading, it's mostly loading but it's still worth going over the tech), the site runs on 2 dedicated servers from LiquidWeb (Both with ...


17

Per the official guidance http://www.google.com/support/webmasters/bin/answer.py?answer=158541 Site Performance is an experimental Webmaster Tools Labs feature that shows you latency information about your site. (To see Site Performance data, you must add and verify your site in Webmaster Tools.) Page load time is the total time from the moment ...


16

Yahoo's tips for improving page sped Google's tips for improving page speed If you're using PHP, Google's tips for making PHP faster Here's a basic list as comprised from Google's Page Speed addon (here's Yahoo's YSlow): Leverage browser caching Specify image dimensions Avoid CSS @import Avoid bad requests Combine images into CSS sprites ...


14

There are a few things you can do: Load the HTML and CSS before the javascript. This gives the browser everything it needs to lay out the page and render it. This gives the user the impression that the page is snappy. Place script tags or blocks as close to the closing body tag as possible. Consider using a CDN. If you are using any of the popular ...


12

Yes. 120KB for HTML alone(!) can be compressed greatly. Together with the CSS and JavaScript files. This will speed up the browsing experience for your users and save you bandwidth on your server. You could implement the compression using your server-side script and cache the compressed files, thus easing the pressure on the CPU on busy servers.


11

Jakob Nielsen has an excellent article, Website Response Times (June 21, 2010) in which he explains why website response times still matter. 0.1 seconds gives the feeling of instantaneous response — that is, the outcome feels like it was caused by the user, not the computer. This level of responsiveness is essential to support the feeling of direct ...


11

The Net tab of the Firebug console (remember to disable browser cache). Resources view of the Web Developer Tools in Chrome/Opera. Fiddler. HTTP Watch. WebPageTest. Gomez. We use WebPageTest and Gomez for server tuning, Fiddler if there are any hard to diagnose problems, then the rest for front-end experience testing. Once you have the level of ...


11

Your best solution is probably http://www.coralcdn.org or using Google's App Engine. It also depends on how much content you think will be downloaded from your site. I know Amazon Cloud Front isn't free but it does only cost $.12 per GB per month in the US. See pricing here, http://aws.amazon.com/cloudfront/#pricing.


10

It doesn't have to be unique. But if it's not it makes your life more difficult. Having a unique username means there is only one possible password for that username. If it's wrong, you don't have to go looking for another user with the same username to compare it to. It's gets really complicated when someone requests a missing password. How do you know who ...


10

WordPress is likely not the issue. It can easily handle that much traffic (1,000,000 visits a month is less than one every two seconds) and that many posts. You need to figure out what's actually causing slowdowns. It might be your host, your database, a misconfiguration, a bad plugin, etc.


9

It probably isn't worth it. I've played with removing whitespace in HTML a little bit, and saw only a 10% size reduction in payload after gzipping. Realistically, whitespace and linefeed removal is doing work that the compression would be doing for us. We're just adding a dab of human-assisted efficiency: Raw Compressed ...


9

CloudFlare, in most cases, does not cache HTML. This is because we don't want to show stale dynamic content. That said, the system can help the performance of even dynamic content in four primary ways: CloudFlare can route traffic over preferred network routes that are often more efficient than what a request would normally take. For sites that get a lot ...


9

Like the others said, Wordpress can handle this amount of traffic just fine. I would suggest one of the two caching plugins. These plugins write database-heavy pages to disk, which saves load on the database server. The difference is remarkable. WP Super Cache W3 Total Cache Both are well-maintained, the latter has more features, but can be intimidating. ...


9

Google will penalize sites that are very slow (greater than 7-10 for the page to become usable). They do this because they state that users are usually not willing to wait that long when they click and usually return to the serps. Google wants to make their users happy. In addition to the direct penalties applied by Google, there are indirect consequences ...


7

You might want to look at the way Google loads Analytics as well: <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-xxxxxxx-x']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == ...


7

Besides Minifing, gziping and CDNing (new word?). You should consider defer loading. Basically what this does is add the scripts dynamically and prevent blocking, allowing parallel downloads. There are many ways of doing it, this is the one I prefer <script type="text/javascript"> function AttachScript(src) { window._sf_endpt=(new ...


7

You can slow down specific resources with Deelay.me: <img src="http://deelay.me/1000?http://mysite.com/image.gif"> Deelay.me is a delay proxy for web resources. You can use it with your images/stylesheets/scripts, to increase their load time.


7

Gzip is probably the most drastic thing you can do. Making sure all you're css and js files are minimized helps. check that you are not loading js libraries or css that you do not need. Most users will cache these so after the first page it's not all that imprortant. Other than that make sure caching is working properly, like not re-parsing a page for ...


7

Pretty much all of Yahoo's Best Practices can be implemented without even touching the site design in any way. Minimize HTTP requests by combining all CSS into one file and all JS into one file. Use Gzip. Set good Expires headers. These rules could affect the design: Reduce the Number of DOM Elements - worth looking at, you should be able to reduce the ...


7

IIS7+ is actually pretty darn' fast. There isn't much you can do to speed up IIS; in general you'll optimize on the HTML, JS, Images, CSS, HTTP, HTTP headers, and possibly webapp code (C# etc). These issues are cross-platform. The user interface is of course different between Apache and IIS, but the knowledge is much the same. Steve Souders literally wrote ...


7

It will help individual browser performance only. It will not boost network utilization in any way. When the browser renders the html, it will begin to allocate and space objects, and if it has explicit instructions on how to allocate the space, the layout parses while the image continues to load in the background. With modern broadband download speeds, this ...



Only top voted, non community-wiki answers of a minimum length are eligible