microsoft / devicescript

TypeScript for Tiny IoT Devices (ESP32, RP2040, ...)
https://microsoft.github.io/devicescript/
MIT License
3.23k stars 111 forks source link

Performance and Loading Speed Enhancements for the Website 🏎 #652

Closed sanjaiyan-dev closed 8 months ago

sanjaiyan-dev commented 8 months ago

Hi, this PR introduces a small improvement to the website.

  1. By wrapping a function in useCallback, you gain the advantage of optimizing performance and reducing unnecessary re-renders in your React components.

  2. Adding the decoding="async" HTML attribute to the image tag provides the benefit of improving the page's loading speed by allowing the browser to start decoding the image as soon as possible without blocking other page rendering tasks.

pelikhan commented 8 months ago

Looks great thanks!

sanjaiyan-dev commented 8 months ago

Looks great thanks!

My Pleasure 😄