이곳은블리세의 공간

블블블블
접속 : 4614   Lv. 55

Category

Profile

Counter

  • 오늘 : 113 명
  • 전체 : 128021 명
  • Mypi Ver. 0.3.1 β
[개발(이라고 쓰고 세발)] Device Agnostic Development (0) 2013/05/18 AM 02:39

webP
mod_pagespeed
resource timing API

- computer side
Jank
Limit styte- recalculations
- limit styte- changes to the DOM
- Don`t change the body when you shoud change child elements directly.

Avoid Layout Thrashing
- We got offwetWidth ( causes a layout)
- We set styte-.width (invalidates the layout)
- we repeat that prpocess

ex ) for(var i= 0; i < element.length; i++) { styte-.height.i }

Remove Unnecessary java-s!crip
- Dont do in JS that which can be doe in CSS. animajtions & transitions
- p-osition:fixed is your frend.
- p-osition : sticky is upcoming.
-
- keep your event listener code to a minimum, the can run several times per frame.


render solve

reduce image overhead... AGAIN

reduce paint cost
- first, deduce the size, then reduce the complexity



Solving for your users.
The save content and functionality
- you are subject to many constraints
- don`t pass them on to users
- you should not offer reduce functionality

Users come to you for content
- big screens = room for content
- that doesn`t work for small screens
- give them the same content, but refactor for the constraint.

Suggestion
Assign a Sheriff
- clarify your constraints before you start.
= set limits(number of requests, GCs, paint time, layout, styte- calculations)
- track it during the lifetime of the project.
- dont ship until you hit your targets.

http://jankfree.org

Conclusion
- its not about devices, its about content.
= every devices is likely to have at least one constraint
- jet the browser do the word
- above all, deliver the content to your users quickly


googlecom/+aerotwist
peter.sh/+

@aerotwist
@beverloo

신고

 
X