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

Improve Page Load Performance 🚀 #47

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

Conversation

sanjaiyan-dev
Copy link

This pull request implements changes to improve the initial page load performance.

Changes:

  • Script Placement: The script block that was previously located at the bottom of the <body> tag has been moved to the top of the <head> tag. This ensures that the browser can download and parse the script earlier, potentially improving the perceived load time of interactive elements.
  • Defer Attribute: The script tag now includes the defer attribute. This instructs the browser to delay the execution of the script until after the HTML parsing is complete. This allows the browser to prioritize rendering the content while still downloading and preparing the script for execution.

Extremely sorry if I made any mistakes :)

@sanjaiyan-dev
Copy link
Author

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.

1 participant