Tutorials on optimizing web graphics for minimum file size. Web graphics optimization shrinks images for fast webpage downloads.
Your new post is loading...
Your new post is loading...
Tutorials on optimizing web graphics for minimum file size. Web graphics optimization shrinks images for fast webpage downloads. No comment yet.
Sign up to comment
Learn how to simulate the elimination of JavaScript with Web Page Test. By eliminating, deferring or converting your JavaScript behavior into CSS you can speed up your page rendering and load times.
Mickael Ruau's insight:
You can simulate the elimination of JavaScript on web pages with Web Page Test. By blocking the loading of JavaScript you can approximate the effect of removing or deferring all of the JavaScript on the page or replacing it with CSS behavior on start render times. Start render and page load times can be increased significantly by combining or eliminating JavaScript files, and replacing them with CSS equivalents.
Although the gap between advertised and actual broadband speeds is closing among US ISPs, there is still a 25-33 percentage point difference between the fastest and slowest providers at identical speed tiers,...
Mickael Ruau's insight:
This article summarizes the report and gives major findings related to web performance including: The ratio between actual versus advertised speeds has improved from 87% in 2011 to 96% in 2012Increasing bandwidth above 10Mbps has little effect on web page load timeSome ISPs fared better than others, Comcast versus Frontier for example
Optimization Week provides the latest news and views in the web performance world.
Mickael Ruau's insight:
What's happening in the web performance industry? What sites are fast? What sites are slow? Learn the latest news and views and some low-speed reviews in our free weekly magazine, Optimization Week. Along with slow-loading sites we'll feature the speed tweak of the week, where you'll learn the latest standards-based technique you can use right now to speed up your site. In addition, you'll keep up with the latest news from WSO, LLC including the latest on our free Web Page Analyzer.
mod_pagespeed is an open-source Apache module that automatically speeds up web sites. Through a number of filters, mod_pagespeed trims the fat off your HTML, CSS, JavaScript and images, reduces HTTP requests, and improves caching.
Mickael Ruau's insight:
mod_pagespeed utilizes a number of filters to optimize HTML, JavaScript, CSS, and JPEG and PNG images, as well as set better caching policies. mod_pagespeed rewrites resoruces into a server-side cache to be delivered instead of the original resources, so it is important to configure caching on your server correctly. The module essentially takes existing page resources and trims excess fat (unused resources in images for example), and improves caching (hashed resources with long expiry times). By configuring caching and HTTP compression and using mod_pagespeed, webmasters can speed up their sites by serving optimized resources.
Free web page analysis service tests page size, composition, and download speed. Recommends speed improvements based on best practices for usability, HCI, and website optimization for maximum website performance.
Mickael Ruau's insight:
Enter URL to diagnose
Even popular offsite widgets can slow down or hang your web pages. Learn how to localize offsite resources to improve web page performance.
Mickael Ruau's insight:
Many of these external resource delays are preventable. The solution is to periodically cache the resource locally on your server and serve it locally. You can use a CRON script to periodically copy the external resource over to your server. Here are some techniques you can use to minimize widget overhead. Cache the remote resource locally (CRON to copy periodically)Defer or delay loading to allow the rest of the page to render before loading JavaScript/external resourcesLoad the resource in an iFrame to decouple the script from your page loads
A server-side variation of merging CSS and JavaScript files before uploading to the server is to do this digital suturing at the server. Y
Mickael Ruau's insight:
ou can "suture" CSS or JavaScript files together before delivery from the server to save HTTP requests. Often developers create separate style sheets and scripts for organizational purposes, and import them into their pages as needed. There are two problems with this approach: it requires additional HTTP requests, andyou can encounter the same-domain connection limit.Scripts that load in the head of your HTML document actually block the loading and parsing of other objects, until they are downloaded (Souders 2007). You can have your organization and eat it too by combining style sheets or JavaScript files on demand to create one master file at the server with PHP or JSP. Done properly, these combined files can also be cached.
Below is the same code but optimized by HTML-Optimizer.
1857 bytes have been saved which is 78%. The original code is not touched. You see the code of the duplicate file.
Mickael Ruau's insight:
Un outil de réduction de la taille du code php.
Learn how to simulate the elimination of CSS with Web Page Test. By eliminating, combining, and recoding your style sheets using modular or object oriented CSS you can speed up your page rendering and load times.
Mickael Ruau's insight:
This article shows how to simulate the elimination of CSS file to approximate refactoring your CSS code to be smaller and to be combined within a single file.
Figure II-3. Relative distribution of latency components showing that object overhead dominates web page latency
You can group styles common to different rules into their own classes to save repeating yourself. By applying multiple classes to one element in CSS you can modularize your code to help optimize your style sheets.
Mickael Ruau's insight:
You can group styles common to different rules into their own classes to save repeating yourself. CSS2-compliant browsers can reference multiple classes within individual elements.
CSS optimization minimizes markup replacing tables and font tags with rules and selectors. Optimized CSS uses shorthand properties, grouping, substitutes css2 rollovers, and the hover pseudoclass for small style sheets and tight optimized code.
Mickael Ruau's insight:
Use CSS to strip presentation out of your (X)HTML. To optimize your CSS group external files to minimize HTTP requests, remove whitespace, and use shorthand properties. Group common declarations, selectors, and CSS code in multiple classes to save space. Use the simplest selectors you can, high in the document tree and let them cascade. Be as vague and as abstract as possible in your CSS selectors. Embed or SSI abbreviated styles for maximum speed.Minimize HTTP requests by grouping external CSS files.Link to external style sheets site-wide to cache in.Layer style sheets for speed. Use cascading to combine linked, alternate, and imported style sheets to layer your presentation for older browsers and alternate media (print), and to save bandwidth.Group selectors with the same declarations and declarations with the same selectors.Use simple selectors high in the document tree to set global and element-wide styles (that is, type styles like body, h1, p, and dt).Use descendant selectors to get specific without class or id selectors.Take advantage of your inheritance - don't overspecify CSS; let it flow down the document tree.Use multiple classes to group common style declarations to save space.Use value replication on the border, padding, and margin properties.Use shorthand hex colors (such as #00f).Use shorthand properties to optimize your CSS (including font, background, margin, and border).Use short class and id names.Use shorthand hexadecimal colors or names, whichever is shorter.Use relative lengths for maximum flexibility.Remove whitespace.Cut the comments. |
JPEGmini is JPEG optimization software that reduces the size of photographs by up to 5 or 6 times, while maintaining their visual quality. WSO tests the free service and interviews the CTO of ICTV.
Mickael Ruau's insight:
JPEGmini works by iteratively reoptimizing existing JPEGs using their own perceptual quality measure. ICVT developed a perceptual quality measure that imitates the qualities of the human visual system. This features enables JPEGmini to apply the optimal amount of compression to each photograph. Rather than using an arbitrary amount of compression as in Photoshop (low, medium, high), JPEG mini applies the optimum amount of compression for each given image, while maintaining existing perceived visual quality.
In terms of web performance, the most effective upgrade consumers can make is moving from 1-3 Mbps to 6-10 Mbps broadband. Above 10-12 Mbps, web page load times don't increase in in proportion to broadband speeds.
Mickael Ruau's insight:
In terms of web performance, the most effective upgrade consumers can make is moving from 1-3 Mbps to 6-10 Mbps broadband. Above 10-12 Mbps, web page load times don't increase in proportion to broadband speeds. Despite the fact that speeds above 10-12 Mbps have little effect on web page browsing speeds, more people are upgrading from the mid-range tiers than other speeds.
Within the last five years, the size of the average web page has more than tripled, and the number of external objects has more than doubled. The data appears to suggest that the more popular a web page, the smaller the total file size.
Mickael Ruau's insight:
The size of the average web page of the top 1000 websites has more than tripled since 2008 (our last update in May 2011 found it had more than septupled since 2003). In the past five years from 2008 to late 2012 the average web page grew from 312K to 1114K (see Figure 1), over 3.5 times larger (Domenech et al. 2007, Flinn & Betcher 2008, Charzinsk 2010, Souders 2012). During the same five-year period, the number of objects in the average web page has more than doubled from 49.9 to 100 objects per page in November 2012.
This article is a description of the optimization of the html of Webreference.com
Mickael Ruau's insight:
EHO is more of an attitude than a specific technique. Every byte counts. The idea is to use the minimum amount of markup to render a page that still works (and validates if desired). HTML optimization is the process of minimizing HTML file size to maximize page display speed. Typical Web pages have extra characters (comments, spaces, returns and redundant attributes) that can safely be removed with no change in appearance. EHO takes this process to its logical extreme within an anything goes approach, where no HTML is safe. EHO is not for everyone. Some of the techniques shown here violate HTML 4, and some don't. It's up to you which ones you use. Balance in Web Design Web design is all about balance: a tradeoff between bandwidth and beauty. The skilled Web designer walks a fine line between appearance and functionality, and can craft pages that appear good but display quickly. That's a real skill, something that WYSIWYG HTML editors won't give you. In fact, I think there is a disconnect between what users want (info fast) and what Web designers are giving them (slow-loading glitz). Promulgated by WYSIWYG HTML editors, high-end how-tos, and overzealous designers there's a plethora of bloated pages out there that few users are willing to wait for. Unoptimized code is rampant on the Web. And I, for one, am on a mission to stop the madness.
Learn how to configure or eliminate ETags to improve website performance.
Mickael Ruau's insight:
An Entity tag (ETag) is a unique identifier assigned to a specific version of a given resource on a web server. ETags are used as a cache control mechanism to allow client browsers to make conditional requests. This lets caches work more efficiently by reusing unchanged resources on the client, and avoiding full server responses if the content has not changed. Efficient caching saves bandwidth and improves performance by delivering only what the client needs, not what it already has.
Learn how to speed up web pages that use Google Analytics with a few simple changes, while maintaining its advantages for faster-loading sites.
Mickael Ruau's insight:
Many sites now use Google Analytics to track their metrics. Google Analytics gives some useful statistics not normally found from server-side log files, including PPC versus natural SEO traffic and visitor behavior. Used as directed however, Google Analytics can slow down your pages. This article shows how improve the speed of web pages using Google Analytics with a few simple changes, while maintaining its advantages for faster-loading sites.
Developers can speed up start render times by flushing a portion of their HTML document to the client even before the entire HTML file is ready. Both Yahoo! Search and Google use this performance technique.
Mickael Ruau's insight:
When a user requests a page, it can take from 200 to 500ms for the backend server to create the HTML. During that time the browser is idle, waiting for data to arrive. Developers can speed up start render times and the display of useful content by flushing the buffer. Flushing HTML sends a partial HTML response to the browser, which modern browsers can display. Flushing allows the browser to start fetching components and rendering the response while the backend can continue creating the rest of the HTML page. Chunking for SpeedThese partial responses are called chunks, from HTTP 1.1's chunked encoding. Chunked encoding allows developers to send pieces of content to the browser, essentially breaking up a web page into separate components. This allows developers to progressively display portions of web pages, sending the most important parts to the client first.
Correctly ordering external stylesheets and external and inline scripts enables better parallelization of downloads and speeds up browser rendering time.
Mickael Ruau's insight:
Because JavaScript code can alter the content and layout of a web page, the browser delays rendering any content that follows a script tag until that script has been downloaded, parsed and executed. However, more importantly for round-trip times, many browsers block the downloading of resources referenced in the document after scripts until those scripts are downloaded and executed. On the other hand, if other files are already in the process of being downloaded when a JS file is referenced, the JS file is downloaded in parallel with them. For example, let's say you have 3 stylesheets and 2 scripts and you specify them in the following order in the document
Publications by Andrew B. King include Speed Up Your Site, the Bandwidth Report, and numerous articles on and off WebReference.com.
Mickael Ruau's insight:
PresentationsSearch Engine Marketing Trends: The Shift to SEO (PDF, 1,345K)This presentation explores the trends in search engine marketing and how budgets are shifting from traditional media to new media including the Internet. As PPC costs rise, ad budgets are shifting toward natural search engine optimization. Shows trends in ad budgets, search queries, metrics, meta tags, and the use of the weblogs to boost visibility. Talk given to the Ann Arbor IT Zone on Nov. 20, 2007 by Andrew B. King, as part of a panel discussion.Website Optimization Introduction: Company, Services, and Case Studies (PDF, 1951K, right click)An introduction to Website Optimization, LLC and the process of web site optimization in general. Describes the services available including website performance, search engine marketing, and usability and accessibility reviews and testing. Shows case studies of actual WSO clients and results. Talk given at an advertising firm in Detroit, Michigan in January 2007 by Andrew B. King.Organic Search Engine Optimization: Best Practices for Maximum Rankings - SEO Presentation (PDF, 1056K, right click)An in-depth tutorial on natural SEO with real-world examples and case studies. Gives overview of search engine traffic, optimum keyphrase length, SEO best practices, plus tips on on-site and off-site optimization. Talk given at Ann Arbor IT Zone on April 28, 2005.Tropical Search Engine Optimization & The Future of Broadband - Presentation (PDF, 726K, right click to download)A talk I gave to the second annual Aruba Tourism Authority eMarketing Conference on April 13, 2005 at the Wyndham Hotel in Aruba. Topics include Search Engine Optimization with specific Aruban examples and the spread of broadband in the U.S. and Europe. Sponsored by the Aruba Hotel Association, Aruba Tourism Authority and the Government of Aruba. Special thanks to Aruba.com.
Slow web servers can be caused by a number of factors. You can test for slow server response times with the time time to first byte metric.
Mickael Ruau's insight:
The Time to First Byte is the amount of time it takes after the client sends an HTTP GET request to receive the first byte of the requested resource from the server. Time to First Byte as WebPageTest.org defines is it the time it takes for the browser to wait for the first byte of a requested resource to be received after the DNS lookup and connection time. Some definitions lump DNS, connection and waiting into the TTFB metric. So TTFB represents the amount of time it takes for the server to respond and build the web page.
Advanced CSS optimization uses shorthand properties, grouping, and substitution to minimize style sheets and html markup. Substitute css2 rollovers, menus, and css layout control to transform your code to a more standards-compliant mode.
Mickael Ruau's insight:
Beyond the oft-cited benefits of cached CSS files and overall bandwidth savings, CSS allows you to substitute lightweight standards-based replacements for older, bandwidth-hungry techniques (like graphic rollover menus). This chapter shows you four general ways you can use CSS to speed up your site: Smaller style sheetsSubstitutionFaster tablesCSS layout and positioning control
HTML optimization improves page display speed and lowers bailout rates. Optimized HTML loads faster, saves bandwidth, and makes for happier users.
Mickael Ruau's insight:
SummaryUse a strict DTD to enable standards mode for maximum rendering speed.Minimize HTTP requests: convert graphic text to text and consolidate.Remove whitespace (spaces, tabs, and returns).Omit redundant tags and attributes.Omit optional quotes and closing tags (this can violate HTML/XHTML).Minimize colors and character entities.Cut the comments.Minimize ALT values, but make them descriptive, not generic.Minimize the head to maximize body display speed.Minimize meta tags:Use only the description and keywords tags.Conditionally include meta tags for critical pages.
|
Your new post is loading...