McrFRED 15
Site walkthrough
@mcr_fred / #McrFRED
Sponsors
Disclaimer!
This is only one approach, there's many others.
The web is moving fast.
There's a bazillion things to learn.
We can't learn everything.
Don't Panic.
We have help.
Things I find helpful
- Dotfiles - Tutsplus tutorial
- Version Control
- Tooling
- Working Locally
- Improving With Each Project
Local Development Environment
Let's step into Terminal
I just created a new directory
&&
I'm in it!
One time installs
Node
Yeoman, Bower and Grunt
$ npm install -g yo
# For npm versions < 1.2.10.
$ npm install -g grunt-cli bower
Yeoman
Ok, but why?
Unicorns and rainbows await. Bear with me.
npm = package.json
bower = bower.json
grunt = Gruntfile.js
Git / GitHub / BitBucket
Let's Install Something
Say we want html5shiv...
- Search Google
- Find it
- Download it
- Move to our project
- Include a link to it
Right?
Nope
Back to the terminal!
Search
$ bower search html5
Install
$ bower install html5shiv --save
What did that do then?
Not only has that now pulled in html5shiv to our project.
It's also saved it into the `bower.json` file.
So next time when we do `$ bower install` it automatically installs.
Yayayaya
Yayayaya
Sublime Superpowers
More time savers
# List all files colorized in long format
alias l="ls -l ${colorflag}"
# Open current directory in Sublime Text
alias s="subl ."
Cmd+T > Start typing out a filename > Enter
Sass - CSS with superpowers
- Variables
- Nesting
- Mixins
Styling with Sass
With grunt watch
, grunt will watch for changes and livereload will update the browser.
With Sass it's possible to split code up into separate files called partials.
Viewport Sizes
Partials
_jawa
_tauntaun
_wampa
_bantha
_rancor
Chrome Dev Tools
Responsive testing.
Live Reload Styling
Power Tools
Quickly get to the app you're after.
Power Tools
Quickly view apps side by side.
@eczarny is ace and helped me out with my dotfiles.
Browser Testing
Modern.ie - The place to go to get old IE browsers.
Automated installation of IE VMs.
Update VB hosts file to point VB to local.
Device Testing
GhostLab + DeviceLab
http://report.mind.org.uk/2013/
First Idea
Prototype
Highlighted potential issues.
- Fixed dimensions
- Maintainability
- Responsive Issues
- Device Issues
WCAG
Web Content Accessibility Guidelines
Screenreaders
SVGs
Help awesomeness from the people of the InternetzBaron von Archibaldus III / Count Christoph Coyier of Coyerton
ajaxInclude
ajaxInclude (thanks @stucox)
- Easier to maintain
- No page blocking
- Full CSS control
<div id="svg-clock" data-replace="svg/clock.html"></div>
SVG Issue
SVG Issue
SVG Viewbox
<svg viewBox="0 0 358 414">
Grunt Build SVG Tag Issue
!!! Client Request !!!
Illustrator / SVG coordinates
Finished Result
With random animation on page load
Browser Testing
Animation Testing Required
Getting clicky with pointer events
Font Rendering
Gradient Rendering
Safari
http://codepen.io/s10wen/pen/czDbu
This is a Safari rendering bug triggered by backface-visibility: hidden on the .pie-chart > :last-child em.
Reduction ftw!
Win7 Chrome Width Issue
!!! IE8 Testing !!!
IE8
IE8
IE8
IE8
IE8
IE8
IE8
IE8
Device Testing
iOS Testing
CanvasJS
Issue with CanvasJS where you'd get stuck when scrolling.
Thanks Sunil Urs
Horizontal Scrolling
!!! Client Request !!!
Can we make the woman get pregnant?
Finished Result
Background Jank Performance
translate vs position / Bye Bye Layer Hacks
FPS Jank Busting
60fps makes me super happy
JS Performance
PageSpeed Test
Image Optimisation
Images are huuuuge.
Server Performance
Build Tool Performance - App - 6.282s
Build Tool Performance - Dist - 4.726s
1.5 seconds saving
AWS S3 Deployment as easy as:
$ s3_website push --site dist
Facebook Social
Facebook Social
Crazy Egg
This makes me happy...
To everyone that left a
comment and shared a link.
Thank you!
McrFRED 15
So long, and thanks for all the fish
@mcr_fred / #McrFRED
Thanks for coming!
Fancy a chit chat and a pint?
McrFRED 15
By Simon Owen
McrFRED 15
- 5,089