Web Crypto API

ERROR : WebCrypto is only supported over secure origins. See http://crbug.com/373032

移动端市场占有率

性能优化建议

参考 1

  • Don't generate the UI on the server
  • Limit network access
  • Don't wait for the data to display the UI
  • Use Css Transitions + hardware acceleration
  • Avoid click event's 300ms delay
  • Optimize images
  • Limit shadows and gradients
  • Do you need that framework?
  • Minimize browser reflows
  • Test

testing

  • mocha

      npm install -g mocha
      mocha xxxTest.js
    
  • jasmine

      # Local installation:
      npm install --save-dev jasmine
    
      # Global installation
      npm install -g jasmine
    
      jasmine init
      jasmine xxxTest.js
    

    store

  • LokiJS

参考

js equals

arg type conditional result
undefined false
number +0, -0, NaN 为 false,其他为true
string 长度为0则为false,其他为true
object null为false,其他为true

参考

nw.js vs Electron

compaire 1 - oldcompaire 2016