Skip to content

Optimizations #384

New issue

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

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

Already on GitHub? # to your account

Closed

Conversation

PraneyaKumar
Copy link
Contributor

This PR improves site performance and security by addressing critical dependencies, optimizing assets, and implementing best practices:

Fixes #251

Fixed Critical Single Points of Failure (SPOF):

  • External dependencies like jQuery and Google Fonts could block rendering in case of failure.
  • Self-hosted these to resolve .

Optimized Asset Loading:

  • Minified CSS files (bootstrap.css, bootstrap-responsive.css, swc.css), reducing total size by 19% (~29.5 KiB).

Deferred JavaScript parsing:

  • Deferred JavaScript parsing (~78.7 KiB) to improve page load speed.

Implemented Content Security Policy (CSP):

  • Added CSP headers in _config.yml to restrict resource loading and mitigate security risks.

Enabled Caching for Faster Page Loads:

  • Integrated jekyll-include-cache for optimized Liquid includes.

Improved Accessibility:

  • Defined a lang attribute in the HTML root for better accessibility and SEO.

@nabobalis
Copy link
Member

Thanks for the PR @PraneyaKumar, can you explain these changes? I am not familiar with how much of this works.

It also seems the build of the website is failing now, can you look into those?

@PraneyaKumar
Copy link
Contributor Author

Thanks for the PR @PraneyaKumar, can you explain these changes? I am not familiar with how much of this works.

It also seems the build of the website is failing now, can you look into those?

Hi @nabobalis ,

Thanks for reviewing the PR and providing your feedback. I appreciate your time.

I’ve looked into the build failure and have resolved the issue. Let me know if there are any further changes or if you’d like me to clarify anything regarding the updates.

Looking forward to your thoughts!

@nabobalis
Copy link
Member

Has this PR been replaced by #385?

@PraneyaKumar
Copy link
Contributor Author

Has this PR been replaced by #385?

Yes

@nabobalis nabobalis closed this Mar 17, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Optimizations
2 participants