[BUG]: Eliminate render-blocking CDN stylesheet for SocialShareButton in index.html
Maintainers usually reply within 1 day
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
- Domain
- frontend, performance
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 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
preconnectanddns-prefetchresource hints forhttps://cdn.jsdelivr.netin<head>to perform early DNS resolution and TLS handshakes. - Load
social-share-button.cssasynchronously using the non-blockingrel="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
- Open https://orgexplorer.aossie.org/ in Google Chrome.
- Open Chrome DevTools (
F12) and navigate to the Lighthouse tab. - Select the Performance category and click Analyze page load.
- 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
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
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from AOSSIE-Org/OrgExplorer
-
[BUG]: Organization filter dropdown in AnalyticsPage renders empty list due to truthy evaluation of empty issuesDataPossibly taken @havyasreekuppam claimed this 5 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
AOSSIE-Org/OrgExplorer#476 · 5 comments ·
Maintainers usually reply within 1 day
-
Add Pat for 5000 req/hr button not visible when pat expiresPossibly taken @Rajvardhan-Singh-Rathore claimed this 6 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
AOSSIE-Org/OrgExplorer#473 · 6 comments ·
Maintainers usually reply within 1 day
-
[BUG]: PAT popup input lacks label association and visibility button lacks an accessible namePossibly taken @prasanm1423 claimed this 10 days ago. Openbug enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
AOSSIE-Org/OrgExplorer#466 · 2 comments ·
Maintainers usually reply within 1 day
-
[FEATURE]: Set dynamic document.title based on active page routePossibly taken @23241a6749 claimed this 8 days ago. Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
AOSSIE-Org/OrgExplorer#462 · 2 comments ·
Maintainers usually reply within 1 day
-
[BUG]: SocialShareButton logs unconditional console.warn when script is not loadedPossibly taken @vivekrajputofficial29-afk claimed this 8 days ago. Openbug enhancement
Difficulty 1/5 Under an hour Newbie friendliness 89/100
AOSSIE-Org/OrgExplorer#461 · 1 comment ·
Maintainers usually reply within 1 day
All issues in AOSSIE-Org/OrgExplorer
Similar issues
-
marketing
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Kanevry/session-orchestrator#108 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
awesomemotive/all-in-one-seo-pack#3238 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
andromarces/agent-loops#2055 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 2 days