You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Captured from the network log on a plain page load today.
Problems
The stylesheet has no integrity attribute, so it is the one asset here with nothing pinning its contents.
DataTables is pinned to 1.12.1, a 2022 release, with nothing in the repo tracking it.
If the CDN is blocked or unavailable, body-end.html returns early at if (typeof $ === 'undefined' || !$.fn || !$.fn.DataTable) return; and the page renders every KEP as one unpaginated table (see add discourse shortcode #6 below — currently 640 rows).
Visitors' requests reach two third-party hosts to view a Kubernetes project page.
Where
layouts/partials/hooks/body-end.html for the DataTables script; the jQuery and DataTables CSS tags come from the site's head config.
What happens
Loading https://www.kubernetes.dev/resources/keps/ pulls runtime assets from origins outside the project:
jquery-3.6.0.min.jscode.jquery.com1.12.1/js/jquery.dataTables.jscdn.datatables.net1.12.1/css/jquery.dataTables.csscdn.datatables.netCaptured from the network log on a plain page load today.
Problems
integrityattribute, so it is the one asset here with nothing pinning its contents.body-end.htmlreturns early atif (typeof $ === 'undefined' || !$.fn || !$.fn.DataTable) return;and the page renders every KEP as one unpaginated table (see add discourse shortcode #6 below — currently 640 rows).Where
layouts/partials/hooks/body-end.htmlfor the DataTables script; the jQuery and DataTables CSS tags come from the site's head config.Suggested fix
Vendor the assets and let Hugo fingerprint them: