godotengine / godot-website

The code for the official Godot Engine website. A static site built using Jekyll.
https://godotengine.org
MIT License
294 stars 142 forks source link

Performance and Accessibility Enhancements: Optimizing Page Loading and Scrolling Experience ✈ #707

Closed sanjaiyan-dev closed 10 months ago

sanjaiyan-dev commented 1 year ago

Hi, this PR aims to bring minor performance and accessibility improvements through the following changes:

1) Adding decoding="async" to the <img/> tag:

2) Moving the deferred script tag to the top of the page for parallel fetching, reducing loading time (Reference: https://web.dev/efficiently-load-third-party-javascript/#defer):

3) Adding a smooth scroll behavior for a smoother scrolling experience: