Web DevelopmentΒ 

Β 

Jaya Krishna Namburu

@askjkrishna

Past and Present

Motivation for the WEB !!

πŸ€”

Good Old Days

πŸ“

🎨

πŸ“¦

JavaScript

CSS

HTML

Progressive Enhancement is Dead !!

Graceful Degradation

The Average Web Page Size Is More than 2MB !!

Present Day !!

πŸ“¦

πŸ“¦

πŸ“¦

JavaScript

CSS-In-JS

Polyfills

πŸ“

index.html

(Just for landing on the page)

πŸ“¦

Templating Engines / JSX

In 2019, the dominant costs of processing scripts are now download and CPU execution time.

@addyosmani

FOU(C)(I)

FUBC

&

Bundle Size

Initial bundle size*

Client - Request - Server - Resource - Client - Unzip - Execute - Paint

  • Initial load should be < 400 KB 
  • Dynamic loading, Lazy load parts of your application when needed.
  • Route level or component level code-splitting
  • G-Zip or brotli compression.
  • Differential Bundling
  • Send only the JS that is being used for the initial paint of the web-page.

Ok, now show me how does that work !!

Images

Jank !!

Here we are !!

  •  Libraryβœ… 
  • Bundlerβœ… 
  • Transpiler / Compilerβœ… 
  • Plugins for Bundlerβœ… 
  • Plugins for Transpilerβœ… 
  • And one plugin for React with JSXβœ…
  • CSS-In Js-Libraryβœ… 
  • Typescript /Flow for static type checkingβœ… Ployfillsβœ… 
  • Code Formattersβœ… 
  • Linterβœ… 
  • Ok!! State Management. (Adds Redux / ngRX / Vuex)βœ… 
  • Ok!! Everyone is using service worker, let me add

How is our future going to be πŸ€”

Rome (experimental)

Being a Responsible Developer !!

Thank you :)

Made with Slides.com