SlideShare a Scribd company logo
WEB PERFORMANCE
OPTIMIZATION
Presented By
Athira Vinod Livares Technologies Pvt Ltd
Tech &Socio-Cultural
Group
Tech&Socio-Cultural Group
PRESENTATION
TITLE
Livares Technologies Pvt Ltd
CONTENTS
● INTRODUCTION
● IMPORTANCE OF WPO
● WATERFALL CHART
● WEB OPTIMIZATION TOOLS
● CAUSES OF POOR PERFORMANCE
● FRONTEND OPTIMIZATION TECHNIQUES
● CONCLUSION
Tech&Socio-Cultural Group
PRESENTATION
TITLE
Livares Technologies Pvt Ltd
INTRODUCTION
● Web performance optimization (WPO) is the science of making
websites load faster and more consistently for all visitors.
● Performance optimization starts with the design and
architecture of an application.
● Improvements can be made in server side or client side.
Tech&Socio-Cultural Group
PRESENTATION
TITLE
Livares Technologies Pvt Ltd
IMPORTANCE OF WPO
● Improved user experience : A network error fast and responsive
application provides a seamless user experience
● Increased efficiency : Increases the overall cost-effectiveness of the
application.
● Usability : The better the website behaves, the happier end users
will be.
● Caching : Use data to be stored on the client side, reducing the need
to fetch the same data from the server
● Improve the performance of an application by optimizing the code :
Reducing the complexity of the code, removing any unnecessary
code
● Conversion rate : The faster the loading time, higher the conversion
rate will be.
Tech&Socio-Cultural Group
PRESENTATION
TITLE
Livares Technologies Pvt Ltd
WATERFALL CHART
● Waterfall charts are diagrams which represent how website
resources are being downloaded, parsed by the engine, in a
timeline that gives us the opportunity to see the sequence and
dependencies between resources.
● It assists in identifying where important events happened
during the loading process.
● They can also let the user easily see how good or bad the
performance of their website is, showing you exactly what is
slowing down your site.
● Different elements that come into play during page’s load time
is URL, Test Location, Browser (Chrome, Firefox, Internet
Explorer, mobile browsers etc…), Connection, Number of Tests,
Repeat View
Tech&Socio-Cultural Group
PRESENTATION
TITLE
Livares Technologies Pvt Ltd
ANALYSIS OF WATERFALL CHART
Tech&Socio-Cultural Group
PRESENTATION
TITLE
Livares Technologies Pvt Ltd
WEBSITE OPTIMIZATION
TOOLS
● Sematext : Monitor performance
● AppSignal : Easy installation
● Sentry : Reports when application is going too slow
● Site24x7 : Monitors SSL certificates
● Raygun : User friendly
● SpeedCurve : Easily setup
● LogRocket : Record user’s session
Tech&Socio-Cultural Group
PRESENTATION
TITLE
Livares Technologies Pvt Ltd
CAUSES OF POOR PERFORMANCE
Performance problems stem from one of three stages in a
website’s journey to the visitor.
● Backend performance : Heavy website traffic overloading
servers, code bugs, inefficient code.
● Middle mile : When packets of information have to travel via
inefficient routes and across great distances to arrive at the
browser
● Frontend performance : Downloading and rendering complex
website content: numerous assets, heavy assets, and third party
assets all result in problems.
Tech&Socio-Cultural Group
PRESENTATION
TITLE
Livares Technologies Pvt Ltd
FRONTEND
OPTIMIZATION
Tech&Socio-Cultural Group
PRESENTATION
TITLE
Livares Technologies Pvt Ltd
HOW TO IMPROVE PERFORMANCE
1. Make fewer HTTP requests
This technique include using image maps, CSS sprites, inline
images, and combined scripts and stylesheets.
● Image Maps : Associate the hyperlink with an image, for example
in navbars and buttons. It allows you to associate multiple URLs
with a single image.
● CSS Sprites : It allow you to combine images, but they’re much
more flexible.
● Inline Images : Image inlining reduces the number of additional
requests needed for page load by embedding image data directly
into the HTML or Javascript bundle.
● Combined scripts and stylesheets
Tech&Socio-Cultural Group
PRESENTATION
TITLE
Livares Technologies Pvt Ltd
2. Use a Content Delivery Network
● The CDN may choose the server with the fewest network hops
or the server with the quickest response time
● CDNs work by deploying PoPs (Points of Presence) across the
globe, which contains 2 things: one it contains a copy of your
website, and in caching servers, it stores all the cached files.
Two, it communicates with users based on their location on the
map.
Tech&Socio-Cultural Group
PRESENTATION
TITLE
Livares Technologies Pvt Ltd
3. Add an Expires header
● The expires header is an HTTP header that contains the date and
time until the page is available in the browser cache.
Tech&Socio-Cultural Group
PRESENTATION
TITLE
Livares Technologies Pvt Ltd
4. Gzip components
● Gzip is a data compression algorithm capable of compressing
and decompressing files quickly.
● There are 2 ways to compress web content :
1) Dynamic compression compresses files when they’re requested
by the user, and is the default approach used by most web
servers.
2) Static compression compresses each file in advance and delivers
this pre-compressed version when the original file is requested.
Tech&Socio-Cultural Group
PRESENTATION
TITLE
Livares Technologies Pvt Ltd
5. Put Stylesheets at the Top
● The problem with putting stylesheets near the bottom of the
document is that it prohibits progressive rendering in many
browsers.
● The browser delays showing any visible components while it
and the user wait for the stylesheet at the bottom.
● To avoid the blank white screen.
● There are two ways you can include a stylesheet in your
document: the LINK tag and the STYLE block.
Tech&Socio-Cultural Group
PRESENTATION
TITLE
Livares Technologies Pvt Ltd
6. Put Scripts at the Bottom
● Move your scripts to the bottom of the page right before your
</body> tag.
● Use the async or defer directive to avoid render blocking
● Less the amount of JavaScript files (concatenate your JS files into
one file)
● Minify your JavaScript (remove extra spaces, characters, etc)
● Inline your JavaScript if it is small
Tech&Socio-Cultural Group
PRESENTATION
TITLE
Livares Technologies Pvt Ltd
7. Avoid CSS Expressions
● CSS expressions are a method to dynamically set CSS properties,
like background color, page width, font properties
● Conventional CSS rule for setting the background color:
● The background color could be set to alternate every hour using
CSS expressions.
● Use Event handlers
Tech&Socio-Cultural Group
PRESENTATION
TITLE
Livares Technologies Pvt Ltd
8. Make JavaScript and CSS External
● Using external JavaScript and CSS files generally produces faster
pages because the files are cached by the browser
● If the JavaScript and CSS are in external files cached by the
browser, the HTML document size is reduced without increasing
the number of HTTP requests.
● High reuse rate
Tech&Socio-Cultural Group
PRESENTATION
TITLE
Livares Technologies Pvt Ltd
9. Minify JavaScript
Examples of what is removed during file minification includes:
● Whitespace characters
● Comments
● Line breaks
● Block delimiter
Tech&Socio-Cultural Group
PRESENTATION
TITLE
Livares Technologies Pvt Ltd
10. Reduce DNS Lookups
● The Domain Name System (DNS) maps hostnames to IP
addresses, just like phonebooks map people's names to their
phone numbers.
● Reduce the amount of hostnames that are requested in order to
generate your web page.
● Download the files that are being referenced to an external
resource and host them on your origin server or a CDN.
Tech&Socio-Cultural Group
PRESENTATION
TITLE
Livares Technologies Pvt Ltd
11. Avoid URL Redirects
● URL redirects are made using HTTP status codes 301 and 302.
They tell the browser to go to another location.
● Inserting a redirect between the user and the final HTML
document delays everything on the page since nothing on the
page can be rendered and no components can be downloaded
until the HTML document arrives.
● So avoid all 301 and 302 redirects if possible.
● Always use Key CDN's HTTP Header Checker tool to see if a 301
is active.
● It occurs when a trailing slash (/) is missing from a URL that
should otherwise have one.
Tech&Socio-Cultural Group
PRESENTATION
TITLE
Livares Technologies Pvt Ltd
12. Remove Duplicate Javascript and CSS
● Duplicate JavaScript and CSS files hurt performance by creating
unnecessary HTTP requests and wasted JavaScript execution.
● External script is included twice and is not cacheable, it
generates two HTTP requests during page loading
● Make sure you are only including references to your external
scripts once.
Tech&Socio-Cultural Group
PRESENTATION
TITLE
Livares Technologies Pvt Ltd
13. Configure ETags
● Entity tags are a mechanism web servers and the browser use
to determine whether a component in the browser's cache
matches one on the origin server.
● A traditional ETag is comprised of three separate components
which make it an unique identifier for each resource: INode,
MTime, Size
● Etags are meant to be used on a website which only delivers
content from a single server.
Tech&Socio-Cultural Group
PRESENTATION
TITLE
Livares Technologies Pvt Ltd
14. Make Ajax Cacheable
● One of AJAX's benefits is it provides instantaneous feedback to
the user because it requests information asynchronously from
the backend web server.
● Using AJAX does not guarantee the user will not wait for the
asynchronous JavaScript and XML responses to return.
● Optimizing AJAX responses is important to improve
performance, and making the responses cacheable is the best
way to optimize them.
Tech&Socio-Cultural Group
PRESENTATION
TITLE
Livares Technologies Pvt Ltd
15. Use GET for AJAX requests
● When using the XMLHttpRequest object, the browser
implements POST in two steps:
(1) send the headers
(2) send the data.
● It is better to use GET instead of POST since GET sends the
headers and the data together (unless there are many
cookies).
● Example
Tech&Socio-Cultural Group
PRESENTATION
TITLE
Livares Technologies Pvt Ltd
16. Reduce the number of DOM elements
● A complex page means more bytes to download, and it also
means slower DOM access in JavaScript.
● If you are running a CMS might you not have control over this
as much as if you are developing a static site. But remember
widgets, sections, etc. all could create additional DOM
elements
Tech&Socio-Cultural Group
PRESENTATION
TITLE
Livares Technologies Pvt Ltd
17. Avoid HTTP 404 (not found) error
● Making an HTTP request and receiving a 404 (Not Found) error
is expensive and degrades the user experience.
● Some sites have helpful 404 messages (for example, "Did you
mean ...?"), which may assist the user, but server resources
are still wasted.
● Fix your 404 errors as they can be quite costly over time.
Tech&Socio-Cultural Group
PRESENTATION
TITLE
Livares Technologies Pvt Ltd
18. Reduce cookie size
● HTTP cookies are used for authentication, personalization, and
other purposes. Cookie information is exchanged in the HTTP
headers between web servers and the browser, so keeping the
cookie size small minimizes the impact on response time.
● Eliminate unnecessary cookies
● Be mindful of setting cookies at the appropriate domain level so
other subdomains are not affected
● Set an Expires date appropriately.
Tech&Socio-Cultural Group
PRESENTATION
TITLE
Livares Technologies Pvt Ltd
19. Use cookie-free domains
● When the browser requests a static image and sends cookies
with the request, the server ignores the cookies.
● These cookies are unnecessary network traffic.
Tech&Socio-Cultural Group
PRESENTATION
TITLE
Livares Technologies Pvt Ltd
20. Do not scale images in HTML
● Web page designers sometimes set image dimensions by using
the width and height attributes of the HTML image element.
Avoid doing this since it can result in images being larger than
needed.
Tech&Socio-Cultural Group
PRESENTATION
TITLE
Livares Technologies Pvt Ltd
21. Make favicon small and cacheable
● favicon resides in the server's root, each time the browser
requests this file, the cookies for the server's root are sent.
● Making favicon cacheable avoids frequent requests for it.
Tech&Socio-Cultural Group
PRESENTATION
TITLE
Livares Technologies Pvt Ltd
CONCLUSION
● Typical users nowadays can expect a web page to load in less
than 3 seconds. If your pages don’t make it within this
timeframe, you simply lose traffic and therefore revenue.
● Performance is actually about retaining users and improving
conversions, which means optimizing your website’s
performance is a must for any online business.
● You want to make sure you give your users a top-notch
experience, instead of a disruptive and frustrating one.
Tech&Socio-Cultural Group
PRESENTATION
TITLE
Livares Technologies Pvt Ltd
REFERENCES
● Optimization tools
https://sematext.com/blog/frontend-performance-monitoring/
● Waterfall chart https://www.dotcom-monitor.com/blog/optimizing-web-
performance-understanding-waterfall-charts/
● Frontend optimization techniques https://krify.co/the-importance-of-
performance-optimization-in-web-and-mobile-app-development/
● Books : High performance websites by O’reilly
● https://www.flowmatters.com/blog/website-performance-optimization-
what-is-it-and-why-should-you-choose-it/
● https://www.keycdn.com/blog/website-performance-optimization
OUR
CONTACT DETAILS
Livares Technologies Pvt Ltd
5th Floor, Yamuna Building
Technopark Phase III Campus
Trivandrum, Kerala, India-
695581
Livares Technologies Pvt Ltd
Tech &Socio-Cultural
Group
Our helpline is always open to receive any inquiry
or feedback.Please feel free to contact us
www.livares.com
contact@livares.com
@livaresofficial
www.facebook.com/livaresofficil
+91-471-2710003 | +91-471-
2710004
THANK
YOU

More Related Content

What's hot

Single Page Applications
Single Page ApplicationsSingle Page Applications
Single Page Applications
Massimo Iacolare
 
web development.pptx
web development.pptxweb development.pptx
web development.pptx
MohdArbazraza
 
Microservices Architectures: Become a Unicorn like Netflix, Twitter and Hailo
Microservices Architectures: Become a Unicorn like Netflix, Twitter and HailoMicroservices Architectures: Become a Unicorn like Netflix, Twitter and Hailo
Microservices Architectures: Become a Unicorn like Netflix, Twitter and Hailo
gjuljo
 
Microservices & API Gateways
Microservices & API Gateways Microservices & API Gateways
Microservices & API Gateways
Kong Inc.
 
OWASP Top 10 2021 What's New
OWASP Top 10 2021 What's NewOWASP Top 10 2021 What's New
OWASP Top 10 2021 What's New
Michael Furman
 
Microservices
Microservices Microservices
Microservices
Trieu Nguyen
 
Introduction To Single Page Application
Introduction To Single Page ApplicationIntroduction To Single Page Application
Introduction To Single Page ApplicationKMS Technology
 
Tiki.vn - How we scale as a tech startup
Tiki.vn - How we scale as a tech startupTiki.vn - How we scale as a tech startup
Tiki.vn - How we scale as a tech startup
Tung Ns
 
Dynatrace
DynatraceDynatrace
Dynatrace
Purnima Kurella
 
Manual JavaScript Analysis Is A Bug
Manual JavaScript Analysis Is A BugManual JavaScript Analysis Is A Bug
Manual JavaScript Analysis Is A Bug
Lewis Ardern
 
Getting Started with HTML5 in Tech Com (STC 2012)
Getting Started with HTML5 in Tech Com (STC 2012)Getting Started with HTML5 in Tech Com (STC 2012)
Getting Started with HTML5 in Tech Com (STC 2012)
Peter Lubbers
 
Building high performance microservices in finance with Apache Thrift
Building high performance microservices in finance with Apache ThriftBuilding high performance microservices in finance with Apache Thrift
Building high performance microservices in finance with Apache Thrift
RX-M Enterprises LLC
 
Dev ops != Dev+Ops
Dev ops != Dev+OpsDev ops != Dev+Ops
Dev ops != Dev+Ops
Shalu Ahuja
 
Introduction to Wordpress
Introduction to WordpressIntroduction to Wordpress
Introduction to Wordpress
Sandy Ratliff
 
Monoliths and Microservices
Monoliths and Microservices Monoliths and Microservices
Monoliths and Microservices
Bozhidar Bozhanov
 
From Event Receivers to SharePoint Webhooks
From Event Receivers to SharePoint WebhooksFrom Event Receivers to SharePoint Webhooks
From Event Receivers to SharePoint Webhooks
André Vala
 
NodeJS for Beginner
NodeJS for BeginnerNodeJS for Beginner
NodeJS for Beginner
Apaichon Punopas
 
WEB I - 01 - Introduction to Web Development
WEB I - 01 - Introduction to Web DevelopmentWEB I - 01 - Introduction to Web Development
WEB I - 01 - Introduction to Web Development
Randy Connolly
 
Maximizing Amazon EC2 and Amazon EBS performance
Maximizing Amazon EC2 and Amazon EBS performanceMaximizing Amazon EC2 and Amazon EBS performance
Maximizing Amazon EC2 and Amazon EBS performance
Amazon Web Services
 

What's hot (20)

Secure Coding for Java
Secure Coding for JavaSecure Coding for Java
Secure Coding for Java
 
Single Page Applications
Single Page ApplicationsSingle Page Applications
Single Page Applications
 
web development.pptx
web development.pptxweb development.pptx
web development.pptx
 
Microservices Architectures: Become a Unicorn like Netflix, Twitter and Hailo
Microservices Architectures: Become a Unicorn like Netflix, Twitter and HailoMicroservices Architectures: Become a Unicorn like Netflix, Twitter and Hailo
Microservices Architectures: Become a Unicorn like Netflix, Twitter and Hailo
 
Microservices & API Gateways
Microservices & API Gateways Microservices & API Gateways
Microservices & API Gateways
 
OWASP Top 10 2021 What's New
OWASP Top 10 2021 What's NewOWASP Top 10 2021 What's New
OWASP Top 10 2021 What's New
 
Microservices
Microservices Microservices
Microservices
 
Introduction To Single Page Application
Introduction To Single Page ApplicationIntroduction To Single Page Application
Introduction To Single Page Application
 
Tiki.vn - How we scale as a tech startup
Tiki.vn - How we scale as a tech startupTiki.vn - How we scale as a tech startup
Tiki.vn - How we scale as a tech startup
 
Dynatrace
DynatraceDynatrace
Dynatrace
 
Manual JavaScript Analysis Is A Bug
Manual JavaScript Analysis Is A BugManual JavaScript Analysis Is A Bug
Manual JavaScript Analysis Is A Bug
 
Getting Started with HTML5 in Tech Com (STC 2012)
Getting Started with HTML5 in Tech Com (STC 2012)Getting Started with HTML5 in Tech Com (STC 2012)
Getting Started with HTML5 in Tech Com (STC 2012)
 
Building high performance microservices in finance with Apache Thrift
Building high performance microservices in finance with Apache ThriftBuilding high performance microservices in finance with Apache Thrift
Building high performance microservices in finance with Apache Thrift
 
Dev ops != Dev+Ops
Dev ops != Dev+OpsDev ops != Dev+Ops
Dev ops != Dev+Ops
 
Introduction to Wordpress
Introduction to WordpressIntroduction to Wordpress
Introduction to Wordpress
 
Monoliths and Microservices
Monoliths and Microservices Monoliths and Microservices
Monoliths and Microservices
 
From Event Receivers to SharePoint Webhooks
From Event Receivers to SharePoint WebhooksFrom Event Receivers to SharePoint Webhooks
From Event Receivers to SharePoint Webhooks
 
NodeJS for Beginner
NodeJS for BeginnerNodeJS for Beginner
NodeJS for Beginner
 
WEB I - 01 - Introduction to Web Development
WEB I - 01 - Introduction to Web DevelopmentWEB I - 01 - Introduction to Web Development
WEB I - 01 - Introduction to Web Development
 
Maximizing Amazon EC2 and Amazon EBS performance
Maximizing Amazon EC2 and Amazon EBS performanceMaximizing Amazon EC2 and Amazon EBS performance
Maximizing Amazon EC2 and Amazon EBS performance
 

Similar to Web Performance Optimization

Need For Speed: How to Deliver Faster, Safer Websites
Need For Speed: How to Deliver Faster, Safer WebsitesNeed For Speed: How to Deliver Faster, Safer Websites
Need For Speed: How to Deliver Faster, Safer Websites
Rachel Wandishin
 
20 tips for website performance
20 tips for website performance20 tips for website performance
20 tips for website performance
Andrew Siemer
 
Magento Meetup New Delhi- Magento2 Speed Optimization
Magento Meetup New Delhi- Magento2 Speed OptimizationMagento Meetup New Delhi- Magento2 Speed Optimization
Magento Meetup New Delhi- Magento2 Speed Optimization
Webkul Software Pvt. Ltd.
 
Optimizing website performance
Optimizing website performanceOptimizing website performance
Optimizing website performance
Publisto Ltd.
 
Web performance mercadolibre - ECI 2013
Web performance   mercadolibre - ECI 2013Web performance   mercadolibre - ECI 2013
Web performance mercadolibre - ECI 2013
Santiago Aimetta
 
Cloudflare Speed Week Recap
Cloudflare Speed Week RecapCloudflare Speed Week Recap
Cloudflare Speed Week Recap
Cloudflare
 
Web Performance Optimization (WPO)
Web Performance Optimization (WPO)Web Performance Optimization (WPO)
Web Performance Optimization (WPO)
Betclic Everest Group Tech Team
 
Progressive Web Apps
Progressive Web AppsProgressive Web Apps
Progressive Web Apps
Saikiran Sheshagiri
 
Web performance optimization - MercadoLibre
Web performance optimization - MercadoLibreWeb performance optimization - MercadoLibre
Web performance optimization - MercadoLibre
Pablo Moretti
 
Optimizing Speed & Security of Oracle Commerce Sites Using Cloudflare
Optimizing Speed & Security  of Oracle Commerce Sites Using CloudflareOptimizing Speed & Security  of Oracle Commerce Sites Using Cloudflare
Optimizing Speed & Security of Oracle Commerce Sites Using Cloudflare
Meghan Weinreich
 
Mean Stack - An Overview
Mean Stack - An OverviewMean Stack - An Overview
Mean Stack - An Overview
Naveen Pete
 
Delivering High Performance Websites with NGINX
Delivering High Performance Websites with NGINXDelivering High Performance Websites with NGINX
Delivering High Performance Websites with NGINX
NGINX, Inc.
 
Web Application Development using PHP and MySQL
Web Application Development using PHP and MySQLWeb Application Development using PHP and MySQL
Web Application Development using PHP and MySQLGanesh Kamath
 
JS digest. Decemebr 2017
JS digest. Decemebr 2017JS digest. Decemebr 2017
JS digest. Decemebr 2017
ElifTech
 
Best Practices with Sitecore
Best Practices with SitecoreBest Practices with Sitecore
Best Practices with Sitecore
Anant Corporation
 
Normalizing x pages web development
Normalizing x pages web development Normalizing x pages web development
Normalizing x pages web development
Shean McManus
 
Node.js Web Apps @ ebay scale
Node.js Web Apps @ ebay scaleNode.js Web Apps @ ebay scale
Node.js Web Apps @ ebay scale
Dmytro Semenov
 
Angular (v2 and up) - Morning to understand - Linagora
Angular (v2 and up) - Morning to understand - LinagoraAngular (v2 and up) - Morning to understand - Linagora
Angular (v2 and up) - Morning to understand - Linagora
LINAGORA
 

Similar to Web Performance Optimization (20)

Need For Speed: How to Deliver Faster, Safer Websites
Need For Speed: How to Deliver Faster, Safer WebsitesNeed For Speed: How to Deliver Faster, Safer Websites
Need For Speed: How to Deliver Faster, Safer Websites
 
20 tips for website performance
20 tips for website performance20 tips for website performance
20 tips for website performance
 
Magento Meetup New Delhi- Magento2 Speed Optimization
Magento Meetup New Delhi- Magento2 Speed OptimizationMagento Meetup New Delhi- Magento2 Speed Optimization
Magento Meetup New Delhi- Magento2 Speed Optimization
 
Optimizing website performance
Optimizing website performanceOptimizing website performance
Optimizing website performance
 
introduction to web application development
introduction to web application developmentintroduction to web application development
introduction to web application development
 
Web performance mercadolibre - ECI 2013
Web performance   mercadolibre - ECI 2013Web performance   mercadolibre - ECI 2013
Web performance mercadolibre - ECI 2013
 
Cloudflare Speed Week Recap
Cloudflare Speed Week RecapCloudflare Speed Week Recap
Cloudflare Speed Week Recap
 
Web Performance Optimization (WPO)
Web Performance Optimization (WPO)Web Performance Optimization (WPO)
Web Performance Optimization (WPO)
 
Progressive Web Apps
Progressive Web AppsProgressive Web Apps
Progressive Web Apps
 
Web performance optimization - MercadoLibre
Web performance optimization - MercadoLibreWeb performance optimization - MercadoLibre
Web performance optimization - MercadoLibre
 
Optimizing Speed & Security of Oracle Commerce Sites Using Cloudflare
Optimizing Speed & Security  of Oracle Commerce Sites Using CloudflareOptimizing Speed & Security  of Oracle Commerce Sites Using Cloudflare
Optimizing Speed & Security of Oracle Commerce Sites Using Cloudflare
 
Mean Stack - An Overview
Mean Stack - An OverviewMean Stack - An Overview
Mean Stack - An Overview
 
Delivering High Performance Websites with NGINX
Delivering High Performance Websites with NGINXDelivering High Performance Websites with NGINX
Delivering High Performance Websites with NGINX
 
Transforming the web into a real application platform
Transforming the web into a real application platformTransforming the web into a real application platform
Transforming the web into a real application platform
 
Web Application Development using PHP and MySQL
Web Application Development using PHP and MySQLWeb Application Development using PHP and MySQL
Web Application Development using PHP and MySQL
 
JS digest. Decemebr 2017
JS digest. Decemebr 2017JS digest. Decemebr 2017
JS digest. Decemebr 2017
 
Best Practices with Sitecore
Best Practices with SitecoreBest Practices with Sitecore
Best Practices with Sitecore
 
Normalizing x pages web development
Normalizing x pages web development Normalizing x pages web development
Normalizing x pages web development
 
Node.js Web Apps @ ebay scale
Node.js Web Apps @ ebay scaleNode.js Web Apps @ ebay scale
Node.js Web Apps @ ebay scale
 
Angular (v2 and up) - Morning to understand - Linagora
Angular (v2 and up) - Morning to understand - LinagoraAngular (v2 and up) - Morning to understand - Linagora
Angular (v2 and up) - Morning to understand - Linagora
 

More from Livares Technologies Pvt Ltd

Supervised Machine Learning
Supervised Machine LearningSupervised Machine Learning
Supervised Machine Learning
Livares Technologies Pvt Ltd
 
Software Architecture Design
Software Architecture DesignSoftware Architecture Design
Software Architecture Design
Livares Technologies Pvt Ltd
 
Automation using Appium
Automation using AppiumAutomation using Appium
Automation using Appium
Livares Technologies Pvt Ltd
 
Bubble(No code Tool)
Bubble(No code Tool)Bubble(No code Tool)
Bubble(No code Tool)
Livares Technologies Pvt Ltd
 
Unsupervised Machine Learning
Unsupervised Machine LearningUnsupervised Machine Learning
Unsupervised Machine Learning
Livares Technologies Pvt Ltd
 
Developing Secure Apps
Developing Secure AppsDeveloping Secure Apps
Developing Secure Apps
Livares Technologies Pvt Ltd
 
Micro-Frontend Architecture
Micro-Frontend ArchitectureMicro-Frontend Architecture
Micro-Frontend Architecture
Livares Technologies Pvt Ltd
 
Apache J meter
Apache J meterApache J meter
Introduction to Angular JS
Introduction to Angular JSIntroduction to Angular JS
Introduction to Angular JS
Livares Technologies Pvt Ltd
 
An Insight into Quantum Computing
An Insight into Quantum ComputingAn Insight into Quantum Computing
An Insight into Quantum Computing
Livares Technologies Pvt Ltd
 
Just in Time (JIT)
Just in Time (JIT)Just in Time (JIT)
Just in Time (JIT)
Livares Technologies Pvt Ltd
 
Introduction to Bitcoin
Introduction to Bitcoin Introduction to Bitcoin
Introduction to Bitcoin
Livares Technologies Pvt Ltd
 
Data Mining Technniques
Data Mining TechnniquesData Mining Technniques
Data Mining Technniques
Livares Technologies Pvt Ltd
 
Facade Design Pattern
Facade Design PatternFacade Design Pattern
Facade Design Pattern
Livares Technologies Pvt Ltd
 
Manual Vs Automation Testing
Manual Vs Automation TestingManual Vs Automation Testing
Manual Vs Automation Testing
Livares Technologies Pvt Ltd
 
Screenless display
Screenless displayScreenless display
Screenless display
Livares Technologies Pvt Ltd
 
Database Overview
Database OverviewDatabase Overview
Database Overview
Livares Technologies Pvt Ltd
 
An Introduction to Machine Learning
An Introduction to Machine LearningAn Introduction to Machine Learning
An Introduction to Machine Learning
Livares Technologies Pvt Ltd
 
An Introduction to Face Detection
An Introduction to Face DetectionAn Introduction to Face Detection
An Introduction to Face Detection
Livares Technologies Pvt Ltd
 
Smart water meter solutions using LoRa WAN - Troncart
Smart water meter solutions using LoRa WAN - TroncartSmart water meter solutions using LoRa WAN - Troncart
Smart water meter solutions using LoRa WAN - Troncart
Livares Technologies Pvt Ltd
 

More from Livares Technologies Pvt Ltd (20)

Supervised Machine Learning
Supervised Machine LearningSupervised Machine Learning
Supervised Machine Learning
 
Software Architecture Design
Software Architecture DesignSoftware Architecture Design
Software Architecture Design
 
Automation using Appium
Automation using AppiumAutomation using Appium
Automation using Appium
 
Bubble(No code Tool)
Bubble(No code Tool)Bubble(No code Tool)
Bubble(No code Tool)
 
Unsupervised Machine Learning
Unsupervised Machine LearningUnsupervised Machine Learning
Unsupervised Machine Learning
 
Developing Secure Apps
Developing Secure AppsDeveloping Secure Apps
Developing Secure Apps
 
Micro-Frontend Architecture
Micro-Frontend ArchitectureMicro-Frontend Architecture
Micro-Frontend Architecture
 
Apache J meter
Apache J meterApache J meter
Apache J meter
 
Introduction to Angular JS
Introduction to Angular JSIntroduction to Angular JS
Introduction to Angular JS
 
An Insight into Quantum Computing
An Insight into Quantum ComputingAn Insight into Quantum Computing
An Insight into Quantum Computing
 
Just in Time (JIT)
Just in Time (JIT)Just in Time (JIT)
Just in Time (JIT)
 
Introduction to Bitcoin
Introduction to Bitcoin Introduction to Bitcoin
Introduction to Bitcoin
 
Data Mining Technniques
Data Mining TechnniquesData Mining Technniques
Data Mining Technniques
 
Facade Design Pattern
Facade Design PatternFacade Design Pattern
Facade Design Pattern
 
Manual Vs Automation Testing
Manual Vs Automation TestingManual Vs Automation Testing
Manual Vs Automation Testing
 
Screenless display
Screenless displayScreenless display
Screenless display
 
Database Overview
Database OverviewDatabase Overview
Database Overview
 
An Introduction to Machine Learning
An Introduction to Machine LearningAn Introduction to Machine Learning
An Introduction to Machine Learning
 
An Introduction to Face Detection
An Introduction to Face DetectionAn Introduction to Face Detection
An Introduction to Face Detection
 
Smart water meter solutions using LoRa WAN - Troncart
Smart water meter solutions using LoRa WAN - TroncartSmart water meter solutions using LoRa WAN - Troncart
Smart water meter solutions using LoRa WAN - Troncart
 

Recently uploaded

Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Aggregage
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
nkrafacyberclub
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
sonjaschweigert1
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
Pierluigi Pugliese
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Nexer Digital
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 

Recently uploaded (20)

Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 

Web Performance Optimization

  • 1. WEB PERFORMANCE OPTIMIZATION Presented By Athira Vinod Livares Technologies Pvt Ltd Tech &Socio-Cultural Group
  • 2. Tech&Socio-Cultural Group PRESENTATION TITLE Livares Technologies Pvt Ltd CONTENTS ● INTRODUCTION ● IMPORTANCE OF WPO ● WATERFALL CHART ● WEB OPTIMIZATION TOOLS ● CAUSES OF POOR PERFORMANCE ● FRONTEND OPTIMIZATION TECHNIQUES ● CONCLUSION
  • 3. Tech&Socio-Cultural Group PRESENTATION TITLE Livares Technologies Pvt Ltd INTRODUCTION ● Web performance optimization (WPO) is the science of making websites load faster and more consistently for all visitors. ● Performance optimization starts with the design and architecture of an application. ● Improvements can be made in server side or client side.
  • 4. Tech&Socio-Cultural Group PRESENTATION TITLE Livares Technologies Pvt Ltd IMPORTANCE OF WPO ● Improved user experience : A network error fast and responsive application provides a seamless user experience ● Increased efficiency : Increases the overall cost-effectiveness of the application. ● Usability : The better the website behaves, the happier end users will be. ● Caching : Use data to be stored on the client side, reducing the need to fetch the same data from the server ● Improve the performance of an application by optimizing the code : Reducing the complexity of the code, removing any unnecessary code ● Conversion rate : The faster the loading time, higher the conversion rate will be.
  • 5. Tech&Socio-Cultural Group PRESENTATION TITLE Livares Technologies Pvt Ltd WATERFALL CHART ● Waterfall charts are diagrams which represent how website resources are being downloaded, parsed by the engine, in a timeline that gives us the opportunity to see the sequence and dependencies between resources. ● It assists in identifying where important events happened during the loading process. ● They can also let the user easily see how good or bad the performance of their website is, showing you exactly what is slowing down your site. ● Different elements that come into play during page’s load time is URL, Test Location, Browser (Chrome, Firefox, Internet Explorer, mobile browsers etc…), Connection, Number of Tests, Repeat View
  • 7. Tech&Socio-Cultural Group PRESENTATION TITLE Livares Technologies Pvt Ltd WEBSITE OPTIMIZATION TOOLS ● Sematext : Monitor performance ● AppSignal : Easy installation ● Sentry : Reports when application is going too slow ● Site24x7 : Monitors SSL certificates ● Raygun : User friendly ● SpeedCurve : Easily setup ● LogRocket : Record user’s session
  • 8. Tech&Socio-Cultural Group PRESENTATION TITLE Livares Technologies Pvt Ltd CAUSES OF POOR PERFORMANCE Performance problems stem from one of three stages in a website’s journey to the visitor. ● Backend performance : Heavy website traffic overloading servers, code bugs, inefficient code. ● Middle mile : When packets of information have to travel via inefficient routes and across great distances to arrive at the browser ● Frontend performance : Downloading and rendering complex website content: numerous assets, heavy assets, and third party assets all result in problems.
  • 10. Tech&Socio-Cultural Group PRESENTATION TITLE Livares Technologies Pvt Ltd HOW TO IMPROVE PERFORMANCE 1. Make fewer HTTP requests This technique include using image maps, CSS sprites, inline images, and combined scripts and stylesheets. ● Image Maps : Associate the hyperlink with an image, for example in navbars and buttons. It allows you to associate multiple URLs with a single image. ● CSS Sprites : It allow you to combine images, but they’re much more flexible. ● Inline Images : Image inlining reduces the number of additional requests needed for page load by embedding image data directly into the HTML or Javascript bundle. ● Combined scripts and stylesheets
  • 11. Tech&Socio-Cultural Group PRESENTATION TITLE Livares Technologies Pvt Ltd 2. Use a Content Delivery Network ● The CDN may choose the server with the fewest network hops or the server with the quickest response time ● CDNs work by deploying PoPs (Points of Presence) across the globe, which contains 2 things: one it contains a copy of your website, and in caching servers, it stores all the cached files. Two, it communicates with users based on their location on the map.
  • 12. Tech&Socio-Cultural Group PRESENTATION TITLE Livares Technologies Pvt Ltd 3. Add an Expires header ● The expires header is an HTTP header that contains the date and time until the page is available in the browser cache.
  • 13. Tech&Socio-Cultural Group PRESENTATION TITLE Livares Technologies Pvt Ltd 4. Gzip components ● Gzip is a data compression algorithm capable of compressing and decompressing files quickly. ● There are 2 ways to compress web content : 1) Dynamic compression compresses files when they’re requested by the user, and is the default approach used by most web servers. 2) Static compression compresses each file in advance and delivers this pre-compressed version when the original file is requested.
  • 14. Tech&Socio-Cultural Group PRESENTATION TITLE Livares Technologies Pvt Ltd 5. Put Stylesheets at the Top ● The problem with putting stylesheets near the bottom of the document is that it prohibits progressive rendering in many browsers. ● The browser delays showing any visible components while it and the user wait for the stylesheet at the bottom. ● To avoid the blank white screen. ● There are two ways you can include a stylesheet in your document: the LINK tag and the STYLE block.
  • 15. Tech&Socio-Cultural Group PRESENTATION TITLE Livares Technologies Pvt Ltd 6. Put Scripts at the Bottom ● Move your scripts to the bottom of the page right before your </body> tag. ● Use the async or defer directive to avoid render blocking ● Less the amount of JavaScript files (concatenate your JS files into one file) ● Minify your JavaScript (remove extra spaces, characters, etc) ● Inline your JavaScript if it is small
  • 16. Tech&Socio-Cultural Group PRESENTATION TITLE Livares Technologies Pvt Ltd 7. Avoid CSS Expressions ● CSS expressions are a method to dynamically set CSS properties, like background color, page width, font properties ● Conventional CSS rule for setting the background color: ● The background color could be set to alternate every hour using CSS expressions. ● Use Event handlers
  • 17. Tech&Socio-Cultural Group PRESENTATION TITLE Livares Technologies Pvt Ltd 8. Make JavaScript and CSS External ● Using external JavaScript and CSS files generally produces faster pages because the files are cached by the browser ● If the JavaScript and CSS are in external files cached by the browser, the HTML document size is reduced without increasing the number of HTTP requests. ● High reuse rate
  • 18. Tech&Socio-Cultural Group PRESENTATION TITLE Livares Technologies Pvt Ltd 9. Minify JavaScript Examples of what is removed during file minification includes: ● Whitespace characters ● Comments ● Line breaks ● Block delimiter
  • 19. Tech&Socio-Cultural Group PRESENTATION TITLE Livares Technologies Pvt Ltd 10. Reduce DNS Lookups ● The Domain Name System (DNS) maps hostnames to IP addresses, just like phonebooks map people's names to their phone numbers. ● Reduce the amount of hostnames that are requested in order to generate your web page. ● Download the files that are being referenced to an external resource and host them on your origin server or a CDN.
  • 20. Tech&Socio-Cultural Group PRESENTATION TITLE Livares Technologies Pvt Ltd 11. Avoid URL Redirects ● URL redirects are made using HTTP status codes 301 and 302. They tell the browser to go to another location. ● Inserting a redirect between the user and the final HTML document delays everything on the page since nothing on the page can be rendered and no components can be downloaded until the HTML document arrives. ● So avoid all 301 and 302 redirects if possible. ● Always use Key CDN's HTTP Header Checker tool to see if a 301 is active. ● It occurs when a trailing slash (/) is missing from a URL that should otherwise have one.
  • 21. Tech&Socio-Cultural Group PRESENTATION TITLE Livares Technologies Pvt Ltd 12. Remove Duplicate Javascript and CSS ● Duplicate JavaScript and CSS files hurt performance by creating unnecessary HTTP requests and wasted JavaScript execution. ● External script is included twice and is not cacheable, it generates two HTTP requests during page loading ● Make sure you are only including references to your external scripts once.
  • 22. Tech&Socio-Cultural Group PRESENTATION TITLE Livares Technologies Pvt Ltd 13. Configure ETags ● Entity tags are a mechanism web servers and the browser use to determine whether a component in the browser's cache matches one on the origin server. ● A traditional ETag is comprised of three separate components which make it an unique identifier for each resource: INode, MTime, Size ● Etags are meant to be used on a website which only delivers content from a single server.
  • 23. Tech&Socio-Cultural Group PRESENTATION TITLE Livares Technologies Pvt Ltd 14. Make Ajax Cacheable ● One of AJAX's benefits is it provides instantaneous feedback to the user because it requests information asynchronously from the backend web server. ● Using AJAX does not guarantee the user will not wait for the asynchronous JavaScript and XML responses to return. ● Optimizing AJAX responses is important to improve performance, and making the responses cacheable is the best way to optimize them.
  • 24. Tech&Socio-Cultural Group PRESENTATION TITLE Livares Technologies Pvt Ltd 15. Use GET for AJAX requests ● When using the XMLHttpRequest object, the browser implements POST in two steps: (1) send the headers (2) send the data. ● It is better to use GET instead of POST since GET sends the headers and the data together (unless there are many cookies). ● Example
  • 25. Tech&Socio-Cultural Group PRESENTATION TITLE Livares Technologies Pvt Ltd 16. Reduce the number of DOM elements ● A complex page means more bytes to download, and it also means slower DOM access in JavaScript. ● If you are running a CMS might you not have control over this as much as if you are developing a static site. But remember widgets, sections, etc. all could create additional DOM elements
  • 26. Tech&Socio-Cultural Group PRESENTATION TITLE Livares Technologies Pvt Ltd 17. Avoid HTTP 404 (not found) error ● Making an HTTP request and receiving a 404 (Not Found) error is expensive and degrades the user experience. ● Some sites have helpful 404 messages (for example, "Did you mean ...?"), which may assist the user, but server resources are still wasted. ● Fix your 404 errors as they can be quite costly over time.
  • 27. Tech&Socio-Cultural Group PRESENTATION TITLE Livares Technologies Pvt Ltd 18. Reduce cookie size ● HTTP cookies are used for authentication, personalization, and other purposes. Cookie information is exchanged in the HTTP headers between web servers and the browser, so keeping the cookie size small minimizes the impact on response time. ● Eliminate unnecessary cookies ● Be mindful of setting cookies at the appropriate domain level so other subdomains are not affected ● Set an Expires date appropriately.
  • 28. Tech&Socio-Cultural Group PRESENTATION TITLE Livares Technologies Pvt Ltd 19. Use cookie-free domains ● When the browser requests a static image and sends cookies with the request, the server ignores the cookies. ● These cookies are unnecessary network traffic.
  • 29. Tech&Socio-Cultural Group PRESENTATION TITLE Livares Technologies Pvt Ltd 20. Do not scale images in HTML ● Web page designers sometimes set image dimensions by using the width and height attributes of the HTML image element. Avoid doing this since it can result in images being larger than needed.
  • 30. Tech&Socio-Cultural Group PRESENTATION TITLE Livares Technologies Pvt Ltd 21. Make favicon small and cacheable ● favicon resides in the server's root, each time the browser requests this file, the cookies for the server's root are sent. ● Making favicon cacheable avoids frequent requests for it.
  • 31. Tech&Socio-Cultural Group PRESENTATION TITLE Livares Technologies Pvt Ltd CONCLUSION ● Typical users nowadays can expect a web page to load in less than 3 seconds. If your pages don’t make it within this timeframe, you simply lose traffic and therefore revenue. ● Performance is actually about retaining users and improving conversions, which means optimizing your website’s performance is a must for any online business. ● You want to make sure you give your users a top-notch experience, instead of a disruptive and frustrating one.
  • 32. Tech&Socio-Cultural Group PRESENTATION TITLE Livares Technologies Pvt Ltd REFERENCES ● Optimization tools https://sematext.com/blog/frontend-performance-monitoring/ ● Waterfall chart https://www.dotcom-monitor.com/blog/optimizing-web- performance-understanding-waterfall-charts/ ● Frontend optimization techniques https://krify.co/the-importance-of- performance-optimization-in-web-and-mobile-app-development/ ● Books : High performance websites by O’reilly ● https://www.flowmatters.com/blog/website-performance-optimization- what-is-it-and-why-should-you-choose-it/ ● https://www.keycdn.com/blog/website-performance-optimization
  • 33. OUR CONTACT DETAILS Livares Technologies Pvt Ltd 5th Floor, Yamuna Building Technopark Phase III Campus Trivandrum, Kerala, India- 695581 Livares Technologies Pvt Ltd Tech &Socio-Cultural Group Our helpline is always open to receive any inquiry or feedback.Please feel free to contact us www.livares.com contact@livares.com @livaresofficial www.facebook.com/livaresofficil +91-471-2710003 | +91-471- 2710004 THANK YOU