Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン 初心者向け
#395 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 4 日以内に返信

@garv3143 がすでに取り組んでいます。

2026年10月21日 から。

  • #396 @garv3143 による — オープン

評価

難易度
1/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
javascript

調査の方向性

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 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
主要言語
JavaScript
スター
45
フォーク
148
平均マージ
5日 14時間
マージ済み PR(30日)
31

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

AOSSIE-Org/OrgExplorer のほかの issue

AOSSIE-Org/OrgExplorer の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。