[BUG]: Eliminate render-blocking CDN stylesheet for SocialShareButton in index.html

Open Beginner friendly
#395 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@garv3143 is already working on this.

Since Oct 21, 2026.

  • #396 by @garv3143 — open

Assessment

Difficulty
1/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
javascript

Research direction

Open index.html and inspect the SocialShareButton stylesheet link in the <head>. Start by checking how that stylesheet is loaded and how the existing api.github.com connection hint is written. Done when the stylesheet loads without blocking initial rendering, the CDN connection hints and <noscript> fallback are present, and Lighthouse no longer flags the stylesheet as render-blocking.

Written by the indexing model from the issue text.

Description

bug enhancement
Bug Description

A Lighthouse performance audit on OrgExplorer reveals that the external stylesheet for SocialShareButton loaded from jsDelivr (https://cdn.jsdelivr.net/gh/AOSSIE-Org/SocialShareButton/src/social-share-button.css) is strictly render-blocking.

This synchronously pauses initial page rendering, delaying First Contentful Paint (FCP) and Largest Contentful Paint (LCP) by ~800 ms with an estimated rendering savings of 450 ms. Additionally, while index.html preconnects to api.github.com, it lacks resource hints (preconnect / dns-prefetch) for cdn.jsdelivr.net.

I have verified this behavior in index.html and would like to fix this. Could you please assign this issue to me?

Proposed Solution
  • Add preconnect and dns-prefetch resource hints for https://cdn.jsdelivr.net in <head> to perform early DNS resolution and TLS handshakes.
  • Load social-share-button.css asynchronously using the non-blocking rel="preload" as="style" onload="this.onload=null;this.rel='stylesheet'" pattern.
  • Include a <noscript> fallback so the stylesheet loads reliably if JavaScript is disabled.
  • This eliminates ~450–800 ms of critical render-blocking overhead on initial page load without modifying any React component logic.
Steps to Reproduce
  1. Open https://orgexplorer.aossie.org/ in Google Chrome.
  2. Open Chrome DevTools (F12) and navigate to the Lighthouse tab.
  3. Select the Performance category and click Analyze page load.
  4. Observe the warning under "Render-blocking requests":
    • ...src/social-share-button.css (cdn.jsdelivr.net) is flagged as render-blocking with an 800 ms duration and estimated savings of 450 ms.
Logs and Screenshots
Image
Environment Details
  • Affected File: index.html
  • Browser: Google Chrome (Latest)
  • Tool: Chrome DevTools / Lighthouse
  • Branch: main
Impact

Medium - Feature works but has issues

Code of Conduct
  • I have joined the Discord server and will post updates there
  • I have searched existing issues to avoid duplicates
Dominant language
JavaScript
Stars
53
Forks
187
Avg merge
18m
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AOSSIE-Org/OrgExplorer

All issues in AOSSIE-Org/OrgExplorer

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.