SlideShare a Scribd company logo
1 of 20
1 HTML Template RecommendationsFor SEO Presented by: Ernest Paul
Combine External JavaScript  and CSS Issue: Using external files produces faster pages because the JavaScript and CSS files are cached by the browser. JavaScript and CSS that are inlined in HTML documents get downloaded every time the HTML document is requested.  Recommendation: Place JavaScript and CSS in external files and reference them as needed. This reduces the number of HTTP requests that are needed, but increases the size of the HTML document. If the JavaScript and CSS are in external files cached by the browser, the size of the HTML document is reduced without increasing the number of HTTP requests. 2
Combine External JavaScript  and CSSExternal Caching ,[object Object]
When to Avoid External Caching:  For home pages that have fewer page views per session, inlining JavaScript and CSS results in faster end-user response times.
Work-Around: To optimize the homepage or other front pages that are typically the first of many pages views, use inline JavaScript and CSS in the front page, but dynamically download the external files after the page has finished loading. Subsequent pages will reference the external files that will then already be in the browser's cache.3
Leverage Browser Caching 4 ,[object Object]
Recommendation:
Set Expires to a minimum of one month, and preferably up to one year, in the future.
Set the Last-Modified or ETag date to the last time the resource was changed because if the last-modified date is too far in the past, the browser won’t re-fetch it.,[object Object]
Recommendations:
Combined Files: A way to reduce the number of HTTP requests by combining all scripts into a single script, and similarly combining all CSS into a single stylesheet.
Remove Duplicate Scripts: In addition to generating wasteful HTTP requests, time is wasted evaluating the script multiple times. One way to avoid accidentally including the same script twice is to implement a script management module in your templating system.  HTML ,[object Object]
Recommendation: Implement minifications suggest by Google Page Speed HTML Compactor.5
Parallelize Downloads  Issue: Serving resources from two different hostnames increases parallelization of downloads. The HTTP/1.1 specification suggests that browsers download no more than two components in parallel per hostname. If you serve your images from multiple hostnames, you can get more than two downloads to occur in parallel.  Recommendations: ,[object Object]
Prevent external JS from blocking parallel downloads: When downloading external JavaScript, many browsers block downloads of all other types of files. To prevent JS downloads from blocking other downloads, minimize external JavaScript files.
Use <Link> Instead of @import: Using CSS @import allows stylesheets to import other stylesheets which are the unable to download in parallel. This adds additional load time.6
Serve Static Content from a Cookieless Domain Issue: Static content, such as images, JS and CSS files, don't need to be accompanied by cookies, as there is no user interaction with these resources. Recommendation: ,[object Object]
Enable proxy caching: For resources that rarely change, set caching headers for browsers and proxies. Because cookies will not be sent for these resources, there is no risk that proxy caches will cache user-specific content.7
Specify Image Dimensions Issue: When the browser lays out the page, it can begin to render a page even before images are downloaded, provided that it knows the dimensions of the image. If the dimensions specified don't match those of the actual images, the browser will to lay out the page again once the images are loaded.  Recommendation: ,[object Object],8
Combine Images into CSS Sprites Issue: In order to display an image, the browser must decompress and decode the image. Undisplayed pixels increases the memory usage of your page which can make it load slower.  Recommendations: ,[object Object]

More Related Content

What's hot

What's hot (20)

Speed!
Speed!Speed!
Speed!
 
How to Speed up your Website
How to Speed up your WebsiteHow to Speed up your Website
How to Speed up your Website
 
Website speed optimization techniques
Website speed optimization techniquesWebsite speed optimization techniques
Website speed optimization techniques
 
Website speed optimization guide for technically advanced webmasters
Website speed optimization guide for technically advanced webmastersWebsite speed optimization guide for technically advanced webmasters
Website speed optimization guide for technically advanced webmasters
 
Building faster websites: web performance with WordPress
Building faster websites: web performance with WordPressBuilding faster websites: web performance with WordPress
Building faster websites: web performance with WordPress
 
Optimizing web performance (Fronteers edition)
Optimizing web performance (Fronteers edition)Optimizing web performance (Fronteers edition)
Optimizing web performance (Fronteers edition)
 
Web performance optimization (WPO)
Web performance optimization (WPO)Web performance optimization (WPO)
Web performance optimization (WPO)
 
WordCamp RVA 2011 - Performance & Tuning
WordCamp RVA 2011 - Performance & TuningWordCamp RVA 2011 - Performance & Tuning
WordCamp RVA 2011 - Performance & Tuning
 
Speed kills
Speed killsSpeed kills
Speed kills
 
High Performance - Joomla!Days NL 2009 #jd09nl
High Performance - Joomla!Days NL 2009 #jd09nlHigh Performance - Joomla!Days NL 2009 #jd09nl
High Performance - Joomla!Days NL 2009 #jd09nl
 
Stress Test Drupal on Amazon EC2 vs. RackSpace cloud
Stress Test Drupal on Amazon EC2 vs. RackSpace cloudStress Test Drupal on Amazon EC2 vs. RackSpace cloud
Stress Test Drupal on Amazon EC2 vs. RackSpace cloud
 
Measuring Web Performance
Measuring Web Performance Measuring Web Performance
Measuring Web Performance
 
Make WordPress Faster with W3 Total Cache & Cloudflare
Make WordPress Faster with W3 Total Cache & CloudflareMake WordPress Faster with W3 Total Cache & Cloudflare
Make WordPress Faster with W3 Total Cache & Cloudflare
 
Make Drupal Run Fast - increase page load speed
Make Drupal Run Fast - increase page load speedMake Drupal Run Fast - increase page load speed
Make Drupal Run Fast - increase page load speed
 
How to Fix a Slow WordPress Site (and get A+ scores)
How to Fix a Slow WordPress Site (and get A+ scores)How to Fix a Slow WordPress Site (and get A+ scores)
How to Fix a Slow WordPress Site (and get A+ scores)
 
Caching 101
Caching 101Caching 101
Caching 101
 
WPblog's Ultimate WordPress Guide to Boost Your Website Performance
WPblog's Ultimate WordPress Guide to Boost Your Website Performance WPblog's Ultimate WordPress Guide to Boost Your Website Performance
WPblog's Ultimate WordPress Guide to Boost Your Website Performance
 
Presentation on Instant page speed optimization
Presentation on Instant page speed optimizationPresentation on Instant page speed optimization
Presentation on Instant page speed optimization
 
Speed Up Wordpress, Wordpress Horsepower
Speed Up Wordpress, Wordpress HorsepowerSpeed Up Wordpress, Wordpress Horsepower
Speed Up Wordpress, Wordpress Horsepower
 
Information on Various HTTP Error Codes
Information on Various HTTP Error CodesInformation on Various HTTP Error Codes
Information on Various HTTP Error Codes
 

Viewers also liked

Viewers also liked (7)

Content strategy matrix
Content strategy matrixContent strategy matrix
Content strategy matrix
 
Social roi
Social roiSocial roi
Social roi
 
Digital Innovation & Transformation
Digital Innovation & Transformation Digital Innovation & Transformation
Digital Innovation & Transformation
 
Designing Teams for Emerging Challenges
Designing Teams for Emerging ChallengesDesigning Teams for Emerging Challenges
Designing Teams for Emerging Challenges
 
Visual Design with Data
Visual Design with DataVisual Design with Data
Visual Design with Data
 
3 Things Every Sales Team Needs to Be Thinking About in 2017
3 Things Every Sales Team Needs to Be Thinking About in 20173 Things Every Sales Team Needs to Be Thinking About in 2017
3 Things Every Sales Team Needs to Be Thinking About in 2017
 
How to Become a Thought Leader in Your Niche
How to Become a Thought Leader in Your NicheHow to Become a Thought Leader in Your Niche
How to Become a Thought Leader in Your Niche
 

Similar to Html Optimization for SEO

Web Client Performance
Web Client PerformanceWeb Client Performance
Web Client Performance
Herea Adrian
 
Drupal Frontend Performance and Scalability
Drupal Frontend Performance and ScalabilityDrupal Frontend Performance and Scalability
Drupal Frontend Performance and Scalability
Ashok Modi
 
Web Site Optimization
Web Site OptimizationWeb Site Optimization
Web Site Optimization
Sunil Patil
 
Web site optimization
Web site optimizationWeb site optimization
Web site optimization
Sunil Patil
 

Similar to Html Optimization for SEO (20)

DrupalCampLA 2011 - Drupal frontend-optimizing
DrupalCampLA 2011 - Drupal frontend-optimizingDrupalCampLA 2011 - Drupal frontend-optimizing
DrupalCampLA 2011 - Drupal frontend-optimizing
 
Web Client Performance
Web Client PerformanceWeb Client Performance
Web Client Performance
 
Ui perf
Ui perfUi perf
Ui perf
 
Guide 4 - How To Dramatically Speed Up Your Website Using A Caching Plugin.pdf
Guide 4 - How To Dramatically Speed Up Your Website Using A Caching Plugin.pdfGuide 4 - How To Dramatically Speed Up Your Website Using A Caching Plugin.pdf
Guide 4 - How To Dramatically Speed Up Your Website Using A Caching Plugin.pdf
 
High Performance Ajax Applications
High Performance Ajax ApplicationsHigh Performance Ajax Applications
High Performance Ajax Applications
 
10 Tips to make your Website lightning-fast - SMX Stockholm 2012
10 Tips to make your Website lightning-fast - SMX Stockholm 201210 Tips to make your Website lightning-fast - SMX Stockholm 2012
10 Tips to make your Website lightning-fast - SMX Stockholm 2012
 
23 Ways To Speed Up WordPress
23 Ways To Speed Up WordPress23 Ways To Speed Up WordPress
23 Ways To Speed Up WordPress
 
Introduction to Optimizing WordPress for Website Speed
Introduction to Optimizing WordPress for Website SpeedIntroduction to Optimizing WordPress for Website Speed
Introduction to Optimizing WordPress for Website Speed
 
Tips to improve your website performance
Tips to improve your website performanceTips to improve your website performance
Tips to improve your website performance
 
Website optimization
Website optimizationWebsite optimization
Website optimization
 
Drupal Frontend Performance and Scalability
Drupal Frontend Performance and ScalabilityDrupal Frontend Performance and Scalability
Drupal Frontend Performance and Scalability
 
Performance engineering
Performance engineeringPerformance engineering
Performance engineering
 
Core Web Vitals Fixer
Core Web Vitals FixerCore Web Vitals Fixer
Core Web Vitals Fixer
 
Drupal performance optimization Best Practices
Drupal performance optimization Best PracticesDrupal performance optimization Best Practices
Drupal performance optimization Best Practices
 
10 Tips for Optimising WordPress
10 Tips for Optimising WordPress10 Tips for Optimising WordPress
10 Tips for Optimising WordPress
 
Web Site Optimization
Web Site OptimizationWeb Site Optimization
Web Site Optimization
 
Web site optimization
Web site optimizationWeb site optimization
Web site optimization
 
The Need for Speed - SMX Sydney 2013
The Need for Speed - SMX Sydney 2013The Need for Speed - SMX Sydney 2013
The Need for Speed - SMX Sydney 2013
 
How to speed up your website
How to speed up your websiteHow to speed up your website
How to speed up your website
 
The 5 most common reasons for a slow WordPress site and how to fix them – ext...
The 5 most common reasons for a slow WordPress site and how to fix them – ext...The 5 most common reasons for a slow WordPress site and how to fix them – ext...
The 5 most common reasons for a slow WordPress site and how to fix them – ext...
 

More from S. Ernest Paul ✪

More from S. Ernest Paul ✪ (11)

Fintech Product for Gen Y & Gen Z - Robo Advisor
Fintech Product for Gen Y & Gen Z - Robo Advisor Fintech Product for Gen Y & Gen Z - Robo Advisor
Fintech Product for Gen Y & Gen Z - Robo Advisor
 
Health data sources - RPA as a Service - Beyondiris
Health data sources - RPA as a Service - BeyondirisHealth data sources - RPA as a Service - Beyondiris
Health data sources - RPA as a Service - Beyondiris
 
Open EHR Diagram - RPA as a Service - Beyondiris
Open EHR Diagram - RPA as a Service - BeyondirisOpen EHR Diagram - RPA as a Service - Beyondiris
Open EHR Diagram - RPA as a Service - Beyondiris
 
RPA as a Service - by Beyondiris.com
RPA as a Service - by Beyondiris.comRPA as a Service - by Beyondiris.com
RPA as a Service - by Beyondiris.com
 
Digital marketing maturity business impact
Digital marketing maturity business impactDigital marketing maturity business impact
Digital marketing maturity business impact
 
Design thinking digital marketing workshop S. Ernest Paul - Beyondiris Cons...
Design thinking digital marketing workshop   S. Ernest Paul - Beyondiris Cons...Design thinking digital marketing workshop   S. Ernest Paul - Beyondiris Cons...
Design thinking digital marketing workshop S. Ernest Paul - Beyondiris Cons...
 
Design thinking process
Design thinking processDesign thinking process
Design thinking process
 
CRM requirements checklist
CRM requirements checklistCRM requirements checklist
CRM requirements checklist
 
Digital Marketing Center of Excellence - Summary
Digital Marketing Center of Excellence - SummaryDigital Marketing Center of Excellence - Summary
Digital Marketing Center of Excellence - Summary
 
The future of omni channel
The future of omni channelThe future of omni channel
The future of omni channel
 
Digital marketing core plan
Digital marketing core planDigital marketing core plan
Digital marketing core plan
 

Recently uploaded

Brand experience Peoria City Soccer Presentation.pdf
Brand experience Peoria City Soccer Presentation.pdfBrand experience Peoria City Soccer Presentation.pdf
Brand experience Peoria City Soccer Presentation.pdf
tbatkhuu1
 
FULL ENJOY Call Girls In Majnu.Ka.Tilla Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu.Ka.Tilla Delhi Contact Us 8377877756FULL ENJOY Call Girls In Majnu.Ka.Tilla Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu.Ka.Tilla Delhi Contact Us 8377877756
dollysharma2066
 

Recently uploaded (20)

SEO Master Class - Steve Wiideman, Wiideman Consulting Group
SEO Master Class - Steve Wiideman, Wiideman Consulting GroupSEO Master Class - Steve Wiideman, Wiideman Consulting Group
SEO Master Class - Steve Wiideman, Wiideman Consulting Group
 
BDSM⚡Call Girls in Sector 128 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 128 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 128 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 128 Noida Escorts >༒8448380779 Escort Service
 
Google 3rd-Party Cookie Deprecation [Update] + 5 Best Strategies
Google 3rd-Party Cookie Deprecation [Update] + 5 Best StrategiesGoogle 3rd-Party Cookie Deprecation [Update] + 5 Best Strategies
Google 3rd-Party Cookie Deprecation [Update] + 5 Best Strategies
 
Foundation First - Why Your Website and Content Matters - David Pisarek
Foundation First - Why Your Website and Content Matters - David PisarekFoundation First - Why Your Website and Content Matters - David Pisarek
Foundation First - Why Your Website and Content Matters - David Pisarek
 
Brand experience Peoria City Soccer Presentation.pdf
Brand experience Peoria City Soccer Presentation.pdfBrand experience Peoria City Soccer Presentation.pdf
Brand experience Peoria City Soccer Presentation.pdf
 
The Science of Landing Page Messaging.pdf
The Science of Landing Page Messaging.pdfThe Science of Landing Page Messaging.pdf
The Science of Landing Page Messaging.pdf
 
BDSM⚡Call Girls in Sector 150 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 150 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 150 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 150 Noida Escorts >༒8448380779 Escort Service
 
W.H.Bender Quote 61 -Influential restaurant and food service industry network...
W.H.Bender Quote 61 -Influential restaurant and food service industry network...W.H.Bender Quote 61 -Influential restaurant and food service industry network...
W.H.Bender Quote 61 -Influential restaurant and food service industry network...
 
FULL ENJOY Call Girls In Majnu.Ka.Tilla Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu.Ka.Tilla Delhi Contact Us 8377877756FULL ENJOY Call Girls In Majnu.Ka.Tilla Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu.Ka.Tilla Delhi Contact Us 8377877756
 
Alpha Media March 2024 Buyers Guide.pptx
Alpha Media March 2024 Buyers Guide.pptxAlpha Media March 2024 Buyers Guide.pptx
Alpha Media March 2024 Buyers Guide.pptx
 
SEO for Revenue, Grow Your Business, Not Just Your Rankings - Dale Bertrand
SEO for Revenue, Grow Your Business, Not Just Your Rankings - Dale BertrandSEO for Revenue, Grow Your Business, Not Just Your Rankings - Dale Bertrand
SEO for Revenue, Grow Your Business, Not Just Your Rankings - Dale Bertrand
 
Unraveling the Mystery of The Circleville Letters.pptx
Unraveling the Mystery of The Circleville Letters.pptxUnraveling the Mystery of The Circleville Letters.pptx
Unraveling the Mystery of The Circleville Letters.pptx
 
How to Leverage Behavioral Science Insights for Direct Mail Success
How to Leverage Behavioral Science Insights for Direct Mail SuccessHow to Leverage Behavioral Science Insights for Direct Mail Success
How to Leverage Behavioral Science Insights for Direct Mail Success
 
Instant Digital Issuance: An Overview With Critical First Touch Best Practices
Instant Digital Issuance: An Overview With Critical First Touch Best PracticesInstant Digital Issuance: An Overview With Critical First Touch Best Practices
Instant Digital Issuance: An Overview With Critical First Touch Best Practices
 
Generative AI Master Class - Generative AI, Unleash Creative Opportunity - Pe...
Generative AI Master Class - Generative AI, Unleash Creative Opportunity - Pe...Generative AI Master Class - Generative AI, Unleash Creative Opportunity - Pe...
Generative AI Master Class - Generative AI, Unleash Creative Opportunity - Pe...
 
Navigating the SEO of Tomorrow, Competitive Benchmarking, China as an e-Comme...
Navigating the SEO of Tomorrow, Competitive Benchmarking, China as an e-Comme...Navigating the SEO of Tomorrow, Competitive Benchmarking, China as an e-Comme...
Navigating the SEO of Tomorrow, Competitive Benchmarking, China as an e-Comme...
 
Chat GPT Master Class - Leslie Hughes, PUNCH Media
Chat GPT Master Class - Leslie Hughes, PUNCH MediaChat GPT Master Class - Leslie Hughes, PUNCH Media
Chat GPT Master Class - Leslie Hughes, PUNCH Media
 
Top 5 Breakthrough AI Innovations Elevating Content Creation and Personalizat...
Top 5 Breakthrough AI Innovations Elevating Content Creation and Personalizat...Top 5 Breakthrough AI Innovations Elevating Content Creation and Personalizat...
Top 5 Breakthrough AI Innovations Elevating Content Creation and Personalizat...
 
Cash payment girl 9257726604 Hand ✋ to Hand over girl
Cash payment girl 9257726604 Hand ✋ to Hand over girlCash payment girl 9257726604 Hand ✋ to Hand over girl
Cash payment girl 9257726604 Hand ✋ to Hand over girl
 
Brand Strategy Master Class - Juntae DeLane
Brand Strategy Master Class - Juntae DeLaneBrand Strategy Master Class - Juntae DeLane
Brand Strategy Master Class - Juntae DeLane
 

Html Optimization for SEO

  • 1. 1 HTML Template RecommendationsFor SEO Presented by: Ernest Paul
  • 2. Combine External JavaScript and CSS Issue: Using external files produces faster pages because the JavaScript and CSS files are cached by the browser. JavaScript and CSS that are inlined in HTML documents get downloaded every time the HTML document is requested. Recommendation: Place JavaScript and CSS in external files and reference them as needed. This reduces the number of HTTP requests that are needed, but increases the size of the HTML document. If the JavaScript and CSS are in external files cached by the browser, the size of the HTML document is reduced without increasing the number of HTTP requests. 2
  • 3.
  • 4. When to Avoid External Caching: For home pages that have fewer page views per session, inlining JavaScript and CSS results in faster end-user response times.
  • 5. Work-Around: To optimize the homepage or other front pages that are typically the first of many pages views, use inline JavaScript and CSS in the front page, but dynamically download the external files after the page has finished loading. Subsequent pages will reference the external files that will then already be in the browser's cache.3
  • 6.
  • 8. Set Expires to a minimum of one month, and preferably up to one year, in the future.
  • 9.
  • 11. Combined Files: A way to reduce the number of HTTP requests by combining all scripts into a single script, and similarly combining all CSS into a single stylesheet.
  • 12.
  • 13. Recommendation: Implement minifications suggest by Google Page Speed HTML Compactor.5
  • 14.
  • 15. Prevent external JS from blocking parallel downloads: When downloading external JavaScript, many browsers block downloads of all other types of files. To prevent JS downloads from blocking other downloads, minimize external JavaScript files.
  • 16. Use <Link> Instead of @import: Using CSS @import allows stylesheets to import other stylesheets which are the unable to download in parallel. This adds additional load time.6
  • 17.
  • 18. Enable proxy caching: For resources that rarely change, set caching headers for browsers and proxies. Because cookies will not be sent for these resources, there is no risk that proxy caches will cache user-specific content.7
  • 19.
  • 20.
  • 21. Sprite Images With Similar Color Palettes: Spriting images with more than 256 colors can cause the resulting sprite to use the PNG true color type instead of the palette type, which can increase the size of the resulting sprite. To generate optimal sprites, combine images that share the same 256 color palette. If there is some flexibility in the colors of your images, consider reducing the resulting sprite's color palette to 256 colors.9
  • 22.
  • 23.
  • 24.
  • 25.
  • 26. Recommendation: As new content is added it should be placed towards the top of the code so it can be cached. 10
  • 27.
  • 28. Cookie Size: For resources that must be sent with cookies, keep the cookie sizes to a bare minimum.  No one cookie served off any domain should be more than 1000 bytes. The recommended average size of cookies served off any domain is less than 400 bytes according to Google.
  • 29. Store Only a Unique Identifier in the Cookie: The ID data should be stored in the server with a specified expiry date/time on the cookie.
  • 30. Remove Unused or Duplicated Cookie Fields: If you are serving different applications on different URL paths, but have a field that applies to all applications on a domain — like language preference — include that field in the cookie set at the top-level domain; don't duplicate it. Conversely, if a field only applies to a particular subpath — like a UI setting — don't include that field in the top-level cookie where the data will be passed to all other applications needlessly.11
  • 31.
  • 32. Even if you gzip your scripts and styles, minifying them will still reduce the size by 5% or more.12
  • 33.
  • 34. Use URL paths instead of hostnames wherever possible. If you host multiple properties on the same domain, assign those properties to URL paths rather than separate hostnames.13
  • 35.
  • 36. Use JPGs for Photographic Style Images.
  • 37. Do not use BMPs or TIFFs.14
  • 38. Remove Query String from Static Resources Issue: Enabling public caching in the HTTP header enables static resources to be cached on public proxy servers. This means that even first-time users to your site can benefit from caching since once a static resource has been requested by one user through the proxy, that resource is available for all other users whose requests go through that same proxy. However, most proxies do not cache resources with a "?" in their URL even if public caching is enabled in the HTTP header. Recommendation: Remove query strings from references to static resources, and instead encode the parameters into the file names themselves. 15
  • 39.
  • 40. Correct Character Encoding: It's important that the character set you specify in an HTTP header or HTML meta tag match the character encoding actually used in the HTML documents. If the browser detects an incorrect or mismatched encoding, it will render the page incorrectly.16
  • 41.
  • 42. Remove: If you use JavaScript to generate styles, be sure that those styles are not included in the JavaScript calls of pages that don’t use them.17
  • 43. Use a Content Development Network Issue: The user's proximity to your web server has an impact on response times. Deploying your content across multiple, geographically dispersed servers will make your pages load faster from the user's perspective. Recommendation: Use a CDN service provider, such as Akamai Technologies, EdgeCast, or level3. 18
  • 44. 19 Copyright ® 2010, iProspect.com, Inc. | Confidential + Proprietary | All Rights Reserved | Linked by Isobar Next Steps