Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance Performance and User Experience with defer Attribute and meta Theme Colour 🎨 #119

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sanjaiyan-dev
Copy link

This pull request introduces two improvements to enhance the performance and user experience of our web page:

  1. defer Attribute for External Scripts: Script tags with the defer attribute are executed after the HTML parsing is complete. This can improve the perceived loading speed of the page as the critical rendering path isn't blocked by external scripts.
  2. meta Theme Color: Adding a meta tag with the theme-color property allows browsers and devices to pre-render a themed browser bar or tab, visually indicating the site before full load and enhancing user experience.(#eeeeee)

Benefits:

  • Improved Perceived Performance: Deferring scripts ensures the HTML content renders first, leading to a faster initial page load experience for users.
  • Enhanced User Experience: The theme-color meta tag provides a visual cue of the website's theme even before full load, increasing user engagement.

Copy link
Collaborator

@lgarron lgarron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Normally I'd advocate for type="module" over defer, but defer is more backwards-compatible with older browsers that we may want to test once in a while.

I think a gray theme color isn't particularly exciting, but it doesn't hurt.

@sanjaiyan-dev
Copy link
Author

Hi @lgarron,
I opted for a neutral gray as the primary theme color, as it complements the background colors effectively.

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