Skip to content

Instantly share code, notes, and snippets.

@tachymetre
Last active September 7, 2016 02:35
Show Gist options
  • Save tachymetre/1f44cc000252a0d65e2c to your computer and use it in GitHub Desktop.
Save tachymetre/1f44cc000252a0d65e2c to your computer and use it in GitHub Desktop.
UI-101 (Optimization)
  1. How do you optimize a website’s assets? - There are a number of answers to this question: File concatenation, file compression, CDN Hosting, offloading assets, re-organizing and refining code, etc

  2. What are three ways to reduce page load time? - Reduce image sizes, remove unnecessary widgets, HTTP compression, put CSS at the top and script references at the bottom or in external files, reduce lookups, minimize redirects, caching, etc

  3. What kind of things must you be wary of when design or developing for multilingual sites? - setting the default language, using Unicode encoding, using the ‘lang’ attribute, being aware of standard font sizes and text direction, and language word length (may affect layout)

  4. How to increase web performance? Use what tools? - https://developers.google.com/speed/docs/best-practices/rules_intro - http://www.csdn.net/article/2013-09-23/2817020-web-performance-optimization - Optimize Caching: cache CSS, image, JavaScript files by browser - Minimize round-trip time: fewer numbers of JavaScript and CSS files; in , import CSS file first, external JavaScript next, internal JavaScript last - Minimize request overhead: minimize request size - Minimize payload size: minify JavaScript, CSS and HTML - Optimize browser rendering: specify image dimensions

  5. What’s TDD? - Test-Driven Development (http://en.wikipedia.org/wiki/Test-driven_development) - Write test code before development. If new codes can pass the test, then these codes works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment