fix(cls): remove invalid ScrollSpy from body element
Remove data-bs-spy, data-bs-target, and data-bs-offset attributes from body tag in header.php. The target element .toc-container does not exist, causing Bootstrap ScrollSpy to fail and trigger layout recalculations that account for 82% of the CLS score (0.946 of 1.147). Ref: 99.02-investigacion-cls-mobile.md 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
<?php wp_head(); ?>
|
||||
</head>
|
||||
|
||||
<body <?php body_class(); ?> data-bs-spy="scroll" data-bs-target=".toc-container" data-bs-offset="100">
|
||||
<body <?php body_class(); ?>>
|
||||
<?php wp_body_open(); ?>
|
||||
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user