Keeping Front End Dependencies Under Control Rachel Lehman Technical Team at Interfolio, -

Slides:



Advertisements
Similar presentations
Optimizing Websites with YSlow Tom Lianza Co-Founder Wishlisting.com Tom Lianza Co-Founder Wishlisting.com.
Advertisements

Design Patterns of Web 2.0. Ajax and more! Michael Curry Designer/Developer of PushHandle, Inc.
Web Performance Meetup 1 Web Performance Toolbelt Jeremy
© 2011 Delmar, Cengage Learning Chapter 1 Getting Started with Dreamweaver.
HTML Tags and Their Functions
UI Best Practices Application Developer’s Intro School Week 1 Day 1.
CHAPTER 15 WEBPAGE OPTIMIZATION. LEARNING OBJECTIVES How to test your web-page performance How browser and server interactions impact performance What.
Web Design with Cascading Style Sheet Lan Vu. Overview Introduction to CSS Designing CSS Using Visual Studio to create CSS Using template for web design.
Macromedia Dreamweaver 4 Foundation Level Course.
Create Unordered and Ordered lists Cascading Style Sheets Insert and align Graphics Image enhancements Background images and site maintenance Working with.
Chapter 4 Adding Images. Inserting and Aligning Images Using CSS When you choose graphics to add to a web page, it’s important to use graphic files in.
High Performance Websites (Based on Steve Souder’s lecture) By Bhoomi Patel.
ICS 665 Jesse Abdul. jQuery UI Overview  jQuery UI javascript library Includes all UI component functionality  jQuery UI CSS framework Includes standard.
Mark Phillip markphillip.com 200s, 304s, Expires Headers, HTTP Compression, And You.
Chapter 5 Web Graphics Styling Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
CIT 256 Mobile Web Development Dr. Beryl Hoffman.
CIS 205—Web Design & Development Integration Chapter 1.
Performance, SEO, Accessibility Ivan Zhekov Telerik Corporation
 Using Microsoft Expression Web you can: › Create Web pages and Web sites › Set what you site will look like as you design it › Add text, images, multimedia.
Google Confidential & Proprietary Best Practices for Reducing HTML5 File Size Q
CIT 256 Organizing Large Websites: Divs, DW Templates Dr. Beryl Hoffman.
WaveMaker Visual AJAX Studio 4.0 Training Troubleshooting.
© Ms. Masihi.  The Dreamweaver Welcome Screen first opens when you start Dreamweaver.  This screen gives you quick access to previously opened files,
Sage SalesLogix What’s New in Sawgrass. Data Safeguarding.
Creating an Attractive Site How will your site look. Think about what your customers are seeking and what type of Web site they find attractive.
Unit E. Image Measurements The size of an image can be measured 2 ways: Dimensions: the height and width, measured in pixels. File Size: measured in Kilobytes.
Chapter 4 Adding Images. Chapter 4 Lessons Introduction 1.Insert and align images 2.Enhance an image and use alternate text 3.Insert a background image.
Chapter 19: Adding JavaScript
CIT 256 Dreamweaver Intro. Dr. Beryl Hoffman. Start Dreamweaver Start from Start Menu/Adobe Master Collection CS6/ Adobe Dreamweaver CS6 Choose Create.
Chapter 5 Web Graphics Styling Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Best Practices for Coding April 14, Best Practices Keep it simple –Plain Old Semantic HTML (POSH) Don’t recreate styles already in the EPA style.
Web Performance Optimization Boban Stojanovski (Senior Front End Developer at Solaborate) Think Fast by default.
Adobe Dreamweaver CS3 Revealed CHAPTER THREE: WORKING WITH TEXT AND IMAGES.
| | Tel: | | Computer Training & Personal Development Microsoft Office SharePoint Designer.
Microsoft Expression Web-Illustrated Unit E: Working with Pictures.
Use CSS to Implement a Reusable Design Selecting a Dreamweaver CSS Starter Layout is the easiest way to create a page with a CSS layout You can access.
Creating Google Sites Laura Assem, Director of Technology.
Restricted © Siemens AG All rights reserved A Developer’s Insights Into Performance Optimizations for Mobile Web Apps CT DC AA EM LP2 | June 2015.
LESSON 15 – UNIT 0 ADAPTING YOUR WEB SITE FOR MOBILE DEVICES.
CMS 101 John McClimans – Web Manager Janel Ludwig – Web Content Specialist.
Bundles, Minification Andres Käver, IT Kolledž
IE Developer Tools Jonathan Seitel Program Manager.
1 Minification JavaScript & CSS. 2 Minification Removing 0 Whitespace 0 Line Breaks 0 Comments 0 Shrink Variables 0 Optimize Code.
Techniques for Better Web Development Ben Scheirman Blog:
An Introduction to JQuery Mobile By Trevor Seeney.
WEB DESIGN PRINCIPLES Dale Blasingame School of Journalism & Mass Communication Texas State University.
LibGuides Interface Customization Presented By: Christine Tobias ~ Kelly Sattler ~ Jenny Brandon Michigan State University Libraries.
Sitecore Basic Training Drexel’s full-featured web content management system (CMS) Web Support Information Resources & Technology (IRT)
Sitecore Basic Training Drexel’s full-featured web content management system (CMS) Web Support Information Resources & Technology (IRT)
Website: Contact:
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.
Enhance Your Page Load Speed And Improve Traffic.
Web Development & Design Foundations with HTML5 7th Edition
The Share Widget Library
Positioning Objects with CSS and Tables
PPT By:Gaurav Jaiswal Singsys Pte. Ltd.
Web Design M. Jacie Yang Assistant Professor
Creating a Baseline Grid
Getting Started with Dreamweaver
Objective % Explain concepts used to create websites.
Fixed Positioning.
Web Development & Design Foundations with HTML5 8th Edition
Web Page Design CIS 300.
Exercise 9 Skills You create and use styles to create formatting rules that can easily by applied to other pages in the Web site. You can create internal.
Lesson 3: Cascading Style Sheets (CSS) and Graphical Elements
INSTRUCTIONAL NOTES There are many similarities between Photoshop and Illustrator. We have attempted to place tools and commands in the context of where.
Technical and Non Technical
Positioning Objects with CSS and Tables
Presentation transcript:

Keeping Front End Dependencies Under Control Rachel Lehman Technical Team at Interfolio, -

What are the dependencies? JavaScript CSS Images

5 Simple Steps 1.Organize and plan 2.Location matters 3.Load smart, load once 4.Maximize caching opportunities 5.Optimize, minify and compress

JavaScript

Organization and Planning SpryGWTjQueryPrototypeYUIEXT.js*Dojo Jeremy Keith introduced this concept

Classic Pairings CF + EXT CF + Spry jQuery + jQuery UI YUI + … YUI Prototype & script.aculo.us

Externalize Scripts, at the Bottom

Server-Side Script Bundling

Minify & Compress Minify everything for production – Strip out white space, comments, extra characters to minimize file size – Optionally, obfuscate your code Gzip files over 1 or 2k – Serve compressed files from the server to browsers that support it – Don’t compress files already compressed (PDF, images)

Cache Use external scripts Use Google-hosted libraries for caching benefit Set expires headers on common scripts Configure entity tags (e-tags) on clusters

Directory > HTTP Response Headers > Set Common Headers

In.htaccess Header set Expires “Fri, 13 Aug :00:00 GMT"

In ColdFusion, with

CSS | Style Sheets

Externalize CSS, at the Top

Minify

cssInclude Custom Tag

Please! Comment your CSS!!! Especially hacks, workarounds and redunancies Groups of related styles (search hooks)

Reset CSS Comprehensive: Eric Meyer t/reset.css t/reset.css Basic: YUI

Toward Modular CSS Build a grid system BlueprintCSS 960 Grid System (960gs) YUI Grids

Working with Multiple Files Good – organize by purpose – Framework (grids, reset, typography reset/base) – Core/Skin (application-specific) – Hacks/browser-specific (thanks IE) – [Application sections (forms, edit, admin, etc)] Problematic – organize by rule type* – Colors / images (colors/background images only) – Typography (font definitions only) – Positioning (positioning definitions only)

Images

Organization and Planning

Loading Smart Set expires headers on common elements like logos and navigation

Minimize File Size PNG files are your friend JPEGs for photos and continuous tone images GIFs for simple illustrations, logos, solid color Use the comparison view of your image editor Fireworks generally better than Photoshop for file size and quality SmushIt removes extra non visual data

Minimize Your Image Needs Use CSS Sprites for nav tabs, buttons, icons Do you really need an image? Use CSS3 (corner radius, RGBa) for non-functional enhancements Trim images to minimal dimensions Use small tiled images, but not too small

file:///C:/Users/Rae/Workspace2/cfunited09/toolbar.html

General Advice and Tools

Choosing Libraries Don’t worry as much about what’s popular as what works for your project and your philosophy Build on existing skills Know how to read your stats to decide what to support

Essential Tools Firebug YSlow Firefox Web developer toolbar Safari Web Developer Tools IE Web Developer Tools Extension

May Work for You… CF – Scriptalizer 008/07/09/Problem-WAY-too-many- javascript-files-Solution-cfscriptalizer or /07/09/Problem-WAY-too-many- javascript-files-Solution-cfscriptalizer – Combine.cfc CSS – Blueprint.css – 960.gs – YUI Grids / Fonts / Reset – Eric Meyer’s reset.css /css/reset/ /css/reset/ – Andy Clarke’s Universal IE6 Style Sheet sal-ie6-css sal-ie6-css JS – AJILE – JSLint

Summary 1.Organize and plan 2.Location matters 3.Load smart, load once 4.Maximize caching opportunities 5.Optimize, minify and compress

Q & A Come to

Rachel