beneath the surface - geonetric...haml. sass. less. jpeg. handlebars. jasmine. git. bower. avoiding...

56
Beneath the Surface How Web Design Impacts Your Site’s Health

Upload: others

Post on 25-Mar-2021

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Beneath the SurfaceHow Web Design Impacts Your Site’s Health

Page 2: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

What is design?“Look and feel”

Page 3: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

What is design?“Look and feel” + how it’s made.

HTMLCSSJavaScript

Web Fonts

PNGJQuery

SVG

Bootstrap

Foundation

BackboneAngularEmber

React

Haml

SASS LESS

JPEG

Handlebars

Jasmine

Git Bower

Page 4: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Who does “design”?

Page 5: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Who does “design”?Design happens.

Page 6: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

What are the impactsof design choices?

Performance+

Maintainability

Page 7: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

What are the impactsof design choices?

AccessibilityMobile UX

SEOMaintainability

Page 8: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Accessibility

https://www.geonetric.com/website-design/make-your-website-more-accessible/

Page 9: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

18.7% of Americanshave some type of disability

Page 10: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Accessibility• Americans with Disabilities Act

(ADA) prohibits discrimination on the basis of disability in places of public accommodation

• Section 1557 ties web accessibility to ACA

• Updated Section 508 rules in effect in January 2018

https://www.geonetric.com/website-design/lawsuits-put-web-accessibility-on-healthcare-agenda/

Page 11: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Common design-related accessibility pitfalls

• Photo sliders and carousels

Page 12: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Common design-related accessibility pitfalls

• Photo sliders and carousels• Hidden content and menus

Page 13: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Common design-related accessibility pitfalls

• Photo sliders and carousels• Hidden content and menus• Lack of keyboard accessibility

and visible focus

Page 14: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Common design-related accessibility pitfalls

• Photo sliders and carousels• Hidden content and menus• Lack of keyboard accessibility

and visible focus• Lack of bypass blocks

Page 15: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Running a high-level accessibility test

http://wave.webaim.org/

Page 16: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Provide text alternatives —“alt text” and beyond

Page 17: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Writing alt textShould I describe what this image is, or what it does?

Page 18: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Check for color contrast

https://snook.ca/technical/colour_contrast/colour.html

Page 19: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Test for colorblindness in Photoshop

http://www.adobe.com/accessibility/products/photoshop.html

Page 20: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

What to do

• Incorporate accessibility tools and checkpoints into your workflow

• Consider an accessibility audit to create a baseline, work plan, and ongoing management

For designers For everyone

Page 21: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Mobile user experience

Page 22: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Beyond responsivethinking mobile first.

Page 23: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

505,591 551,184 500,173 463,814

441,693646,324 787,542 878,654

123,661

197,446160,767 156,199

0

200,000

400,000

600,000

800,000

1,000,000

1,200,000

1,400,000

1,600,000

December 2013 December 2014 December 2015 December 2016

Desktop Smartphone Tablet

Growth in digital media time spent in minutes (MM)

Source: comScore Media Metrix Multi-Platform & Mobile Metrix,, U.S., Dec 2013 - Dec 2013

+26%vs. 2013

+99%vs. 2013

-8%vs. 2013

Page 24: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Mobile69%

Desktop31%

69% of digital time spent on mobile

Mobile represents almost 7 in 10 digital media minutes

comScore Media Metrix Multi-Platform & Mobile Metrix, U.S., Total Audience, Dec 2016

Page 25: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

“Mobile users are very goal-oriented. They expect to be able to get what they need, immediately, and on their own terms.”

— Google Research Study

Page 26: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Using web analytics to identify mobile issues

Symptoms of poor mobile user experience:• Higher than average bounce rate — compare to desktop rates• Average time on page is comparatively low• Increased use of “lifelines” – contact us form, site search,

pogosticking from search engines

Page 27: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Design for clarity and action

• Simplify navigation and menus

• Clickable phone numbers

• Short, simple forms

• Maps that work with native mapping apps

• Simple, clear instructions

• Above-the-fold calls to action

Tip: Identify and test page types with highest mobile traffic.

Page 28: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Setting mobile content priorities

32

56

1

1

2

3

4

4

Page 29: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Content lengthDoes mobile require shorter content?

Page 30: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Google’s Mobile-Friendly Test

https://search.google.com/search-console/mobile-friendly

Page 31: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Accessing tools within your browser

https://developer.chrome.com/devtools

Page 32: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Using Chrome’s mobile toolbar

https://developer.chrome.com/devtools

Page 33: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

What to do

• Spend more time with the non-desktop versions of your sites

• Look for ways to improve the clarity and focus of each page type or screen

• Change your defaults – make a point of going to your mobile site first

• Be aware of how your role in the website impacts the mobile experience

• Identify opportunities to make small improvements

For designers For everyone

Page 34: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Search engine optimization

https://www.geonetric.com/seo/reaching-healthcare-consumers/

Page 35: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

40% of people abandon a website that takes longer than

three seconds to load

Source: KISSmetrics

Page 36: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Page speed affects SEO in multiple ways

• Explicit ranking factor: Google’s speed measures

• Bounce rates & “pogosticking” can have negative impact

• Crawlability of your site• Potential for reduced shares and back-

links

Not to mention overall site performance:

• Reduced conversions

• Increased hosting and bandwidth costs

Page 37: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Site speedThe (perceived) performance of your site has been a ranking factor for a long time.

Page 38: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Mobile-first indexingMany sites score lower on mobile speed tests.

Page 39: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

It’s not just Google …Facebook has also indicated that they will be “considering website performance and a person’s network connection” in ad auctions.

Page 40: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

PageSpeed Insights testing tool

https://developers.google.com/speed/pagespeed/insights

Page 41: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Chrome Inspector: Audits

Page 42: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Who can fix common PageSpeed issues?

Author/editor + designer Optimize images

[Take care when adding JavaScript tags & widgets]

Designer + developer Prioritize visible content

Optimize CSS delivery

Remove render-blocking JavaScript

Use asynchronous scripts

Minify resources

Developer + IT + software Improve server response time

Enable compression

Leverage browser caching

https://developers.google.com/speed/docs/insights/rules

Page 43: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Chrome Inspector: Network

Page 44: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Proper use ofHTML elements

For example, page headers:• Only one H1 per page• Properly nested sub-

heads• Phrases optimized for

SEO

H1

H2

H3

H2

H2

Page 45: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

A word about JavaScriptand SEO.

Page 46: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

What to do

• Review PageSpeed measures on a variety of page types

• Consider SEO when implementing JavaScript features

• Ensure HTML meets standards and is semantic

• Become familiar with impact of images

• Use the semantic markup features of your site correctly

• Consider an audit

For designers For everyone

Page 47: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Maintainability

Page 48: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

What is design?“Look and feel” + how it’s made.

HTMLCSSJavaScript

Web Fonts

PNGJQuery

SVG

Bootstrap

Foundation

BackboneAngularEmber

React

Haml

SASS LESS

JPEG

Handlebars

Jasmine

Git Bower

Page 49: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Avoiding spaghetti code

Page 50: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Symptoms that things have gone wrong

• Fear of making changes• Feeling of being burdened by / locked into current sate• Poor (or absent) coding practices: code reviews, automated testing,

source control, etc.• Only one person knows what will happen if we change ____• Code-heavy pages• Duplication of code – changes required in multiple (unknown)

places, multiple versions of same code libraries

Page 51: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

What to do

• Find a place to begin improving coding practices

• Looks for ways to weave improvements into ongoing projects

• Acknowledge that maintaining your site’s codebase requires an ongoing investment

For designers For everyone

Page 52: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Key takeaways

Page 53: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Who does “design”?Design happens.

Page 54: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

What are the impactsof design choices?

Performance+

Maintainability

Page 55: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Final tip: Ask these questions

• How will it work for mobile users?• How will it meet our accessibility standards?• What are the SEO impacts of this approach?• Is there a simpler way?

Page 56: Beneath the Surface - Geonetric...Haml. SASS. LESS. JPEG. Handlebars. Jasmine. Git. Bower. Avoiding spaghetti code. Symptoms that things have gone wrong • Fear of making changes

Questions?Email [email protected]