[BUG]: Eliminate render-blocking CDN stylesheet for SocialShareButton in index.html
メンテナーはふだん 4 日以内に返信
評価
- 難易度
- 1/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 72/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- javascript
- 領域
- frontend, performance
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- JavaScript
- スター
- 45
- フォーク
- 148
- 平均マージ
- 5日 14時間
- マージ済み PR(30日)
- 31
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
AOSSIE-Org/OrgExplorer のほかの issue
-
[BUG]: Overview "Language Distribution" percentages are relative to the top-7 languages, not all repos対応中かも @Rohit270406 が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
AOSSIE-Org/OrgExplorer#402 · コメント 1 件 ·
メンテナーはふだん 4 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
AOSSIE-Org/OrgExplorer#401 ·
メンテナーはふだん 4 日以内に返信
-
[BUG]: Overview wrongly lists a successfully-loaded org as "could not be loaded" (case / duplicate)対応中かも @dhruvbit が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
AOSSIE-Org/OrgExplorer#400 · コメント 1 件 ·
メンテナーはふだん 4 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
AOSSIE-Org/OrgExplorer#399 ·
メンテナーはふだん 4 日以内に返信
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
AOSSIE-Org/OrgExplorer#398 ·
メンテナーはふだん 4 日以内に返信
AOSSIE-Org/OrgExplorer の issue をすべて見る
似ている issue
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
melodic-software/claude-code-plugins#9619 ·
メンテナーはふだん 1 日以内に返信
-
bug Frontend P2-medium UI UX
難易度 1/5 1時間未満 初心者へのやさしさ 76/100
Deepak3699/Ai_Mentor#427 ·
メンテナーはふだん 1 日以内に返信
-
area: core
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
venn: a name that starts with set-, union-, text- or style- followed by a letter is a parse errorオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
obsidianmd/pele#65 ·
メンテナーはふだん 3 日以内に返信
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
11ty/buildawesome#4407 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信