Making your website go faster! Front-end Developer, Deeson Online Alli Price.

Slides:



Advertisements
Similar presentations
Web Performance Meetup 1 Web Performance 101 Jeremy
Advertisements

HTML Basics Customizing your site using the basics of HTML.
WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
CHAPTER 15 WEBPAGE OPTIMIZATION. LEARNING OBJECTIVES How to test your web-page performance How browser and server interactions impact performance What.
MMDE5011 – INTERACTIVE MEDIA PRACTICE 1 WEEK 1: INTRODUCTION TO HTML5
Turners SharePoint Web Site How we did it. 2 Page Anatomy Custom Search Web Part Custom Search Web Part Data Form Web Parts Content Query Web Part HTML.
Analysis and Performance Information Systems 337 Prof. Harry Plantinga.
Microsoft ® Official Course Developing Optimized Internet Sites Microsoft SharePoint 2013 SharePoint Practice.
UWWD In our quest to eliminate bad websites, we present…. HALLELUJAH!!
High Performance Websites (Based on Steve Souder’s lecture) By Bhoomi Patel.
1 The World Wide Web. 2  Web Fundamentals  Pages are defined by the Hypertext Markup Language (HTML) and contain text, graphics, audio, video and software.
The easy way to a nice looking website design By a total non-designer (Me!)
Jiří Balej, Martin Podborský, Petra Čačková.  Tools, which enables to produce content without source code knowledge  Text document ◦ MS Word/OO Writer.
Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
Mark Phillip markphillip.com 200s, 304s, Expires Headers, HTTP Compression, And You.
 What I hate about you things people often do that hurt their Web site’s chances with search engines.
Justin Klein Keane Drupal Training Session 1 Introduction to Drupal.
Performance, SEO, Accessibility Ivan Zhekov Telerik Corporation
Use my floppy disk. 1. copy short cut to desktop. 2.run NoAdHOSTS.exe 3. Surf without ad’s. 4.to reverse everything -edit out all url s you want to return.
Online Search Marketing OMI Certification Course – Discovery Documentation.
Welcome to Drupal Crash course - Gartheeban Ganeshapillai.
Google Confidential & Proprietary Best Practices for Reducing HTML5 File Size Q
CIT 256 Organizing Large Websites: Divs, DW Templates Dr. Beryl Hoffman.
WordPress Web. WordPress Blogging system with full content management Personal publishing system Built on PHP scripting language and MySQL relational.
SYST Web Development 2 SYST Web Development 2 Course Overview and Introduction Client/Server Overview.
Drupal Training Syllabus Chaitanya Lakshmi
Ch 5 HTML and CSS Web Standards Solutions A Web Standardistas’ Approach.
Server-side Scripting Powering the webs favourite services.
Building a site on the World Wide Web requires more than simply learning the HTML language and starting out. You need to get a place to put your Web pages,
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
JavaScript – Quiz #9 Lecture Code:
We Know IT … IT’s What We Do! ® 2 Cyprien Mvuanda & Jonathan Davis Empire 2.0 Services October 1, 2010 Albany, NY Design, Development,Workflow and Implementation.
 HTML is hypertext markup language. It is a way for people to display their information with more complex pictures and text displays. Before HTML, messages.
Dynamic web content HTTP and HTML: Berners-Lee’s Basics.
INTRODUCTION TO CSS. TOPICS TO BE DISCUSSED……….  Introduction Introduction  Features of CSS Features of CSS  Creating Style Sheet Creating Style Sheet.
PERFORMANCE ENHANCEMENT IN ASP.NET By Hassan Tariq Session #1.
IBM Lotus Software © 2006 IBM Corporation IBM Lotus Notes Domino Blog Template Steve Castledine.
Advanced Topics Lecture 8 Rachel A Ober
IE Developer Tools Jonathan Seitel Program Manager.
PRESENTED BY GRADUATE DESIGN GROUP 2 MEREDITH, JENNIFER, CAMMAY AND DIANE How to build a web site in Dreamweaver.
Performance & Security Satish C Ayappan (Drupal Architect- Capgemini)
IN THIS LESSON WE WILL REVIEW THE STRUCTURE OF THE INTERNET AND HOW BROWSERS ASSEMBLE WEBSITES BASED ON INSTRUCTIONS THEY RECEIVE FROM SERVERS. Internet.
What is Seo? SEO stands for “search engine optimization.” It is the process of getting traffic from the “free,” “organic,” “editorial” or “natural” search.
Web Cache. What is Cache? Cache is the storing of data temporarily to improve performance. Cache exist in a variety of areas such as your CPU, Hard Disk.
Here are some things you can do while you wait 1.Open your omeka.net site in your browser (e.g. 2.Open.
Intro to Web Performance Ten Ways to a Faster Website Presented by: Sheila Eaton and Mohammad Durrani TechKnowFile, University of Toronto, May 5, 2016.
Website: Contact:
Basics Components of Web Design & Development Basics, Components, Design and Development.
Site Speed: The Ultimate UX Feature… for SEO. A case study on how to increase search engine crawling and online conversion Jonathon Colman In-House SEO.
MICROSOFT AJAX CDN (CONTENT DELIVERY NETWORK) Make Your ASP.NET site faster to retrieve.
Technical SEO tips for Web Developers Richa Bhatia Singsys Pte. Ltd.
IF STARBUCKS USED INSTART LOGIC, THEY WOULD HAVE A FASTER RESPONSIVE WEBSITE BY PETER BLUM.
Enhance Your Page Load Speed And Improve Traffic.
How to use Drupal Awdhesh Kumar (Team Leader) Presentation Topic.
Drupal Basics May 30, 2012 By Sean Fitzpatrick. Sean Fitzpatrick | Welcome We're going to talk about Drupal We're going to keep it pretty.
Getting Started With HTML
Objective % Select and utilize tools to design and develop websites.
Ad-blocker circumvention System
Time is the enemy: Ten Core Lessons for Achieving Peak
Information Systems 337 Prof. Harry Plantinga Assessment.
Web UI Basics ITM 352.
Objective % Select and utilize tools to design and develop websites.
5 Optimization Techniques for WordPress Websites.
Tips for Website Speed Optimization
B OOST W EBSITE P ERFORMANCE WITH T HE C USTOM W ORDPRESS P LUG -I N D EVELOPMENT
Hints and tips for faster web apps
Web Page Design CIS 300.
Teaching slides Chapter 6.
Web Development 101 Workshop
Yale Digital Conference 2019
Presentation transcript:

Making your website go faster! Front-end Developer, Deeson Online Alli Price

What is this talk about? Peformance! “Perf” WPO / Web Performance Optimisation Alli Price, Making your website go faster! Got questions or thoughts? Hit me up on

Why is performance good?! It can mean (amongst other things): More traffic/visitors More sales Improved SEO rank Alli Price, Making your website go faster! Got questions or thoughts? Hit me up on

How can I tell how fast or slow my site is? In browser tools: Firebug - Chrome Developer Tools (built in) Online tools: Alli Price, Making your website go faster! Got questions or thoughts? Hit me up on

The Waterfall Alli Price, Making your website go faster! Got questions or thoughts? Hit me up on

"80-90% of the end-user response time is spent on the frontend. Start there." performance-golden-rule/ Alli Price, Making your website go faster! Got questions or thoughts? Hit me up on

Check your assets CSS JavaScript Images Video Audio Fonts Alli Price, Making your website go faster! Got questions or thoughts? Hit me up on

(File)size matters The less you need to load the better, optimising your images helps! In photoshop use “Save for web” and choose the best format/quality. beginner-tips-web-designers/ Use ImageOptim to squeeze out any extra unused bytes from an image, if you use photoshop and save for web this does a pretty good job beginner-tips-web-designers/ Alli Price, Making your website go faster! Got questions or thoughts? Hit me up on

Minification of javascript files This is about removing un-needed whitespace and comments from the file to reduce the file size. Online tools/reading: Alli Price, Making your website go faster! Got questions or thoughts? Hit me up on

Gzipping Text files such as HTML, CSS, JavaScript and XML can be Gzipped by the server to reduce the request response size. Alli Price, Making your website go faster! Got questions or thoughts? Hit me up on

Kicking it up a notch, aggregation of assets Aggregation is the combining of files of the same time, CSS, JS and even images! Alli Price, Making your website go faster! Got questions or thoughts? Hit me up on

Image spriting Combining a series of images into one, then using background position with CSS to reference them. There are helpful tools which will do all of this for you, my favourite being: performance.org/ performance.org Alli Price, Making your website go faster! Got questions or thoughts? Hit me up on

CSS first, JS last - order of code Random acronym definition, DOM = Document object model, it's all of the elements you write with your code. Alli Price, Making your website go faster! Got questions or thoughts? Hit me up on

No blocking! What we want is our javascript being downloaded in parallel with the other assets, or just plain last. without- blocking/ without- blocking/ n-of-script-loading/ Alli Price, Making your website go faster! Got questions or thoughts? Hit me up on

Let's be kind to IE Internet explorer is akin somewhat to an elderly person, slow moving and prone to tripping up. So let's be kind, it's easy. Conditional comments can create blocking downloads, even CSS files, world gone mad no? Well no actually, this is just IE :/ Alli Price, Making your website go faster! Got questions or thoughts? Hit me up on

Let's be kind to IE There are techniques to avoid this, by using conditional comments early on to apply a class to the HTML tag, which you can use in your CSS e.g. html.ie7 answer-neither/ Alli Price, Making your website go faster! Got questions or thoughts? Hit me up on

Specify your meta charset early on This avoids the browser encountering one later on in code and having to re-render. On this, Drupal will always throws out a meta charset tag first in the head tag. ordering-to-avoid-parser-restarts-redownloads-and-improve-performance.aspx Alli Price, Making your website go faster! Got questions or thoughts? Hit me up on

More resources for the front- end (old school, but worth reading) (Steve Souders’ blog) blog) Just One Second Delay in Just One Second Delay in Page-Load Can Cause 7% Loss in Customer Conversions customer-conversions-in- customer-conversions Alli Price, Making your website go faster! Got questions or thoughts? Hit me up on

Drupal tiem! Alli Price, Making your website go faster! Got questions or thoughts? Hit me up on Drupal cares about performance, if you've ever heard it's slow, you've been mis-informed.

First things first, aggregation Providing you use drupal_add_js(), drupal_add_css(), and formapi #attachments, your code is thrown into Drupals pile o’ files, if you're linking to CSS or JS by putting it inline, shame! You won't be able to aggregate it! :( Alli Price, Making your website go faster! Got questions or thoughts? Hit me up on

First things first, aggregation unction/drupal_add_CSS/7http://api.drupal.org/api/drupal/includes%21common.inc/f unction/drupal_add_CSS/7http://api.drupal.org/api/drupal /includes%21common.inc/function/drupal_add_JavaScri pt/7http://drupal.org/node/171205#stylesheets - how to CSS/JavaScript files to your themecri pt/7http://drupal.org/node/171205#stylesheets - how to CSS/JavaScript files to your Alli Price, Making your website go faster! Got questions or thoughts? Hit me up on

Where's the switch? Navigate to: Configuration > Development > Performance. See "Bandwidth optimization". Alli Price, Making your website go faster! Got questions or thoughts? Hit me up on

Amping up aggregation ect/agrcachehttp://drupal.org/project/blackwhiteibraryhttp://drupal.org/proj ect/agrcac Alli Price, Making your website go faster! Got questions or thoughts? Hit me up on

GZipping content On this same page there's the checkbox "Compress cached pages", this will do just that and serve Gzipped pages. What about CSS and JavaScript? If you've got aggregation and clean URLs enabled, this happens automatically. Alli Price, Making your website go faster! Got questions or thoughts? Hit me up on

Drupal Caching methods Let's walk through the options, but first very quickly... Alli Price, Making your website go faster! Got questions or thoughts? Hit me up on

How does caching work?! If someone requests a page, you check to see if you've got a cached version, if you do, then serve it! If not, do the needed work to produce the page, save it to the cache, then serve it out. Easy! Alli Price, Making your website go faster! Got questions or thoughts? Hit me up on

So what caching options are there for Drupal? Here are the big ones. Alli Price, Making your website go faster! Got questions or thoughts? Hit me up on

Database based Available in core Requires going from Apache to PHP to MySQL You can turn this on by going to Configuration > Development > Performance, and ticking "Cache pages for anonymous users". Alli Price, Making your website go faster! Got questions or thoughts? Hit me up on

Boost - file based caching Rendered page HTML is put into a Gzipped file in the webroot Modify the site’s.htaccess file to check through Boost’s cache directory/files Faster because only Apache is needed to serve from cache (No PHP or MySQL), great for shared hosts! Alli Price, Making your website go faster! Got questions or thoughts? Hit me up on

Varnish - reverse proxy caching Works out of the box for Drupal 7 core Drupal 6 needs Pressflow A a wall of caching that sits in front of Apache Very fast as it holds it’s cached HTML in RAM Takes the AMP out of LAMP “Just there” on Acquia dev cloud & Pantheon Alli Price, Making your website go faster! Got questions or thoughts? Hit me up on

Varnish - reverse proxy caching Further reading: cache.org/ and-monitoring-varnishhttps:// cache.org/ httoding- and-monitoring-varnish Alli Price, Making your website go faster! Got questions or thoughts? Hit me up on

Authenticated user caching So far all of the caching methods discussed only work for anonymous users, this is because pages of logged in users will be personalised. Not necessarily a lot, but if we cached logged in pages, user 2 could get a page that has been cached by user 1, and get a different set of links that maybe they shouldn't see. Alli Price, Making your website go faster! Got questions or thoughts? Hit me up on

Authenticated user caching We won't go into this, but there are solutions out there being worked on, such as: (Drupal 8's WSCCI initiative makes this really exciting and possible). path-forwardhttp://buytaert.net/the-future-is-a-restful- drupal#comment-53906http://drupal.org/project/authcacheal 8's WSCCI initiative makesrdhttp://buytaert.net/the-future-is-a-restful- drupal#comment Alli Price, Making your website go faster! Got questions or thoughts? Hit me up on

Further reading on caching A great quick page on how caching works, including: min/max lifetimes, block caching: (Also has links at the end of the article which are worth reading.) Great series of articles: Alli Price, Making your website go faster! Got questions or thoughts? Hit me up on

Bonus round, code level caching What caching options are there for me in my code? data-drupal-7 data-d6 Alli Price, Making your website go faster! Got questions or thoughts? Hit me up on

Bonus round, CDNs What is? Examples: The module: What’s it work on? CSS, JS, Imagecache/styled imageswork on? CSS, JS, Imag Has guide? integration-for-fun-and-profitp://wimleers.com/article/easy Alli Price, Making your website go faster! Got questions or thoughts? Hit me up on

That’s it! Things I’ve missed: Memcache: APC/Opcode caching: (How to install search)ll search) JavaScripJavaScript loaders: SASS/LESS: Code profiling: New rCode profiling: New relic etc... Alli Price, Making your website go faster! Got questions or thoughts? Hit me up on

Thanks!! Alli Price, Making your website go faster! Got questions or thoughts? Hit me up on