Skip to Content
AI時代のWebパフォーマンス・エンジニアリング ―速度と品質の最適化
book

AI時代のWebパフォーマンス・エンジニアリング ―速度と品質の最適化

by Addy Osmani, 株式会社ツークンフト・ワークス
November 2026
252 pages
3h 38m
Japanese
O'Reilly Japan, Inc.
Content preview from AI時代のWebパフォーマンス・エンジニアリング ―速度と品質の最適化

8章サードパーティスクリプトの基礎知識

サードパーティスクリプトとは、Webサイトが自身のコードベース以外の外部のソースから読み込むスクリプトを指す。7章では自分たちで記述したJavaScriptのコストに焦点を当てたが、こうしたサードパーティスクリプトは往々にしてさらに深刻なパフォーマンスの課題をもたらす。ここで言う自分たちのコードには、手動で記述したコードと、AIツールで生成したコードの両方が含まれる。サードパーティサービスを統合するAI生成のコードも、結局は統合先である外部サービスのパフォーマンス特性と制約をそのまま受け継ぐことになる。

サードパーティスクリプトは、開発者やサイト所有者が他者が提供する機能やサービスを迅速に追加することを可能にする。その範囲(https://oreil.ly/Tc-rI)は、分析や広告からソーシャルメディアフィードやインタラクティブウィジェットまで多岐にわたる。実際には、スクリプトURLを参照するか、別のドメインを指す<iframe>を埋め込むことで実装されることが多い。たとえばマーケティングサイトでは、トラッキング用のGoogleアナリティクスやソーシャルシェアボタン用のFacebook SDK、埋め込み動画用のYouTube iframe、カスタマーサポートプロバイダーのチャットウィジェットやAIチャットボットなどが使用される。これらのスクリプトは、サイト所有者が一から構築せずとも有用な機能を提供する。しかし、それには代償が伴うだろう。

前述の通り、コードの最適化をしてもサイトの読み込みが遅い場合、原因はサードパーティスクリプトにある可能性が高い。つまり、自分たちで記述したアプリケーションコードの高速化に全力を尽くした後もなおパフォーマンスのボトルネックが残るなら、それはサードパーティコンテンツが原因だといえる。サードパーティスクリプトは直接制御できないにもかかわらず、ページ読み込みを遅延させ、セキュリティやプライバシーのリスクをもたらし、予測不能な動作を引き起こすことがある。それらに依存することは、自身のサイトのユーザー体験を損なわないでいてくれると外部プロバイダーを信頼することを意味する。 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

The Hidden Cost of AI-Assisted Creativity

The Hidden Cost of AI-Assisted Creativity

Léonard Boussioux, Anil Doshi, Oliver Hauser, Kartik Hosanagar
How to Develop a Great Digital Strategy

How to Develop a Great Digital Strategy

Jeanne W. Ross, Cynthia M. Beath, Ina M. Sebastian
Workforce Ecosystem Orchestration: A Strategic Framework

Workforce Ecosystem Orchestration: A Strategic Framework

Elizabeth J. Altman, David Kiron, Robin Jones, Susan Cantrell, Steven Hatfield
How to Overcome a Power Deficit

How to Overcome a Power Deficit

Cyril Bouquet, Jean-Louis Barsoux

Publisher Resources

ISBN: 9784814401888Publisher Website