Skip to content

Comments

Optimize script loading and enhance meta tags for UI/Social 🛠#9

Open
sanjaiyan-dev wants to merge 1 commit intolibuv:masterfrom
sanjaiyan-dev:master
Open

Optimize script loading and enhance meta tags for UI/Social 🛠#9
sanjaiyan-dev wants to merge 1 commit intolibuv:masterfrom
sanjaiyan-dev:master

Conversation

@sanjaiyan-dev
Copy link

Summary

This PR improves page load performance by optimizing script execution and enhances the user experience across mobile and desktop platforms by adding theme-color and Open Graph metadata.

Changes

  • Performance: Relocated <script> tags to the <head> and added the defer attribute to prevent render-blocking and improve load speed.
  • UI/UX: Added the theme-color meta tag to provide a consistent brand experience in the browser UI on Android (Chrome) and macOS/iOS (Safari).
  • Social: Implemented essential Open Graph (OG) tags (og:title, og:description, og:image) to ensure rich, professional previews when sharing on social media.

Technical Details

  • Scripts: Moved from the bottom of <body> to <head> with defer.
  • Theme Color: <meta name="theme-color" content="#333333"> (#333333)
  • OG Tags: Added standard og:type, og:image, and specific page metadata.

References

@saghul
Copy link
Member

saghul commented Feb 12, 2026

There really is no need for this. The JS is minimal.

@sanjaiyan-dev
Copy link
Author

There really is no need for this. The JS is minimal.

Hi, while the JS is minimal, this change also covers social media posting and the <meta theme-color/> for better UI consistency on modern browsers, with zero downside from the JS tweak. Apologies if I was wrong about this being needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants