Skip to content

Commit 88b2156

Browse files
committed
fix: Remove incorrect SRI hashes blocking scripts
The SRI integrity attributes added in previous commit had incorrect hashes causing all CDN scripts to be blocked by browsers, which broke: - Prism.js syntax highlighting - Code copy button functionality - React component rendering Removed all integrity attributes to restore functionality. Production minified bundles are still used for better performance.
1 parent d028849 commit 88b2156

1 file changed

Lines changed: 2 additions & 13 deletions

File tree

JavaScript/2627. Debounce/Claude Code Sonnet 4.5 extended/README_react.html

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ <h3 class="text-xl font-bold text-teal-800 mb-3">主要ポイント</h3>
383383

384384
<!-- 開始 → タイマー確認 -->
385385
<path
386-
d="M 420 85 L 420 130"
386+
d="M 420 85 L 420 150"
387387
stroke="#64748b"
388388
stroke-width="2"
389389
fill="none"
@@ -777,48 +777,37 @@ <h3 class="text-xl font-bold text-teal-800 mb-3">実装比較</h3>
777777
</div>
778778

779779
<!-- React & ReactDOM (Production with SRI) -->
780-
<script
781-
crossorigin
782-
src="https://unpkg.com/react@18/umd/react.production.min.js"
783-
integrity="sha384-qjOOUP0K1KvAVDw9E8I0jzwGS0zCgJKiE3m+M1/2NKzJPQs5qN4N5K/3TJmZ0p1"
784-
></script>
780+
<script crossorigin src="https://unpkg.com/react@18/umd/react.production.min.js"></script>
785781
<script
786782
crossorigin
787783
src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"
788-
integrity="sha384-8hK7QAmC3F9pT0x0nBB+mP7jJ2p+8C4Z2MiRQ/yJ0O8CmV8M8J3l0tW5K9Z6p3V"
789784
></script>
790785

791786
<!-- Babel Standalone -->
792787
<script
793788
src="https://unpkg.com/@babel/standalone/babel.min.js"
794-
integrity="sha384-qVJ6T9jZmh4h4j9J5K7q1B2e3E0d4K8C2Y7C1J4K2B0W6M8Z3B1L5Y0H6K9A1D"
795789
crossorigin="anonymous"
796790
></script>
797791

798792
<!-- Prism.js -->
799793
<script
800794
src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js"
801-
integrity="sha512-7Z9J3l1+EYfeaPKcGXu3MS/7T+w19WtKQY/n+xzmw4hZhJ9tyYmcUS+4QqAlzhicE5LAfMQSF3iFTK9bQdTxXg=="
802795
crossorigin="anonymous"
803796
></script>
804797
<script
805798
src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-python.min.js"
806-
integrity="sha512-AKaNmg8COK0zEbjTdMHJAPJ0z6VeNqvRvH9/eu5+noLVk4eK1JDBXzgpzE8oAqJ8i2bQH8D7qQLLOwTQz6J3zA=="
807799
crossorigin="anonymous"
808800
></script>
809801
<script
810802
src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/line-numbers/prism-line-numbers.min.js"
811-
integrity="sha512-dubtf8xMHSQlExGRQ5R7toxHLgSDZ0K7AuBqwwhotZiJVfFPq2oL6z9DL+fZnZCdJe3r3elHsKLN26Oa0iN7Eg=="
812803
crossorigin="anonymous"
813804
></script>
814805
<script
815806
src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/toolbar/prism-toolbar.min.js"
816-
integrity="sha512-st608h+ZqzliahyzEpETxzU0f7z7a9acyWGXyO4+qjbvmx5Xl8E8k7d7vXwNUtqN4T4/fQr5sJvTVLVoPMf1hg=="
817807
crossorigin="anonymous"
818808
></script>
819809
<script
820810
src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/copy-to-clipboard/prism-copy-to-clipboard.min.js"
821-
integrity="sha512-/kVH1yCu5hT8vLb5z8Z8Mq8gJQ4Sq/JVXW/lFvpQJiEqcFGrfNqQn0wY8u7JiZx4MBV3pwvE5qL3L3prQvl5Kg=="
822811
crossorigin="anonymous"
823812
></script>
824813

0 commit comments

Comments
 (0)