Git Product home page Git Product logo

angular-wwwid-1's Introduction

FivesecCh

Tantangan Web Developer Untuk Membuat Aplikasi Web Bisa Digunakan Kurang Dari 5 Detik (https://medium.com/wwwid/tantangan-web-developer-untuk-membuat-aplikasi-web-bisa-digunakan-kurang-dari-5-detik-70bb7431741d)

Project ini menggunakan Framework gemuk angular, yg harus bs diload kurang dari 5 detik.

Live Demo

https://id-ch-angular.firebaseapp.com/

Artikel Medium

https://medium.com/angularid/tantangan-membuat-load-aplikasi-web-kurang-dari-5-detik-dengan-angular-5-3c38aa461b5c

List perangkat

  • Angular 5.2.8
  • Angular CLI 1.6.6
  • Angular service worker

Optimasi

  • Optimasi kode: meminimalkan penggunaan ts/js dan css, termasuk tidak menggunakan component tambahan semacam material ataupun primeng
  • tanpa component lazy load: component lazy load yg dicoba malah menambah ukuran akhir js nya, untuk real app sebenarnya bagus
  • ngsw-config.json: prefect untuk gambar thumbnail dari https://cdn-images-1.medium.com, akan terasa ketika app di reload

Peluang optimasi tambahan

masih ada beberapa hal yg belum optimal, seperti ttl dari gambar, error log yg masih masuk di console (menurut audit chrome), dll. termasuk juga ukuran gambar yg tidak optimal untuk ditampilkan di first page. Mungkin juga component untuk category list dan feed-detail bisa ditempatkan di module yg berbeda untuk di lazy-load saja sehingga ukuran main-xxx-bundle.js bisa lebih kecil lagi.. Konfigurasi di ngsw-config.json masih amburadul, ketika di build menjadi ngsw.json tidak semuanya masuk, berarti tidak semuanya konfigurasinya valid, kalo konfigurasi di file ini bisa dioptimalkan, mungkin bisa lebih baik lagi.

Yg sempat terpikirkan jg adalah bagaimana meload image/thumbnail tanpa perlu menunggu load API json nya selesai (mungkinkah?)

Hasil test

pertama: https:///www.webpagetest.org/result/180315_W6_4cf90662c6d9147608a2592244d21373/

kedua: https://www.webpagetest.org/result/180319_W1_5ae6813da711ea64973a499a2b989883/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.