` if it is decorative rather than complementary content.
**3J. Allow browser caching of the HTML document** `Performance`
- **Impact:** Repeat-visit TTFB, back/forward navigation
- **Problem:** The document response sends `cache-control: max-age=0`, forcing revalidation on every navigation despite WP Rocket being active.
- **Solution:**
Set a short but non-zero HTML cache lifetime with a stale-while-revalidate window:
```
Cache-Control: public, max-age=600, stale-while-revalidate=86400
```
**3K. Add valid structured data and disambiguate repeated link text** `SEO`
- **Impact:** Rich results eligibility, link purpose
- **Problem:** PSI's `structuredData` and `tapTargets` audits fail, the single JSON-LD block is typed "Unknown", and link text repeats ("view our instagram feed" Γ3, "visit our facebook page" Γ3, "eng"/"est" Γ3).
- **Solution:**
- Emit a typed schema.org graph (e.g. `Organization` + `CollectionPage`/`ItemList` for the case-study index) instead of the untyped block.
- Add `aria-label` to repeated social/language links, e.g. `
view our instagram feed`.
- Increase tap target size to β₯44Γ44 px for the failing `tapTargets` audit.
**3L. Fix the 4 W3C errors from the rocketlazyloadscript pattern** `Best Practices`
- **Impact:** HTML validity, validator error count
- **Problem:** W3C reports 4 errors: a `script` element with `type="text/rocketlazyloadscript"` (a data block, not a JS MIME type) must not carry `defer`, first at line 2616.
- **Solution:**
- In WP Rocket, disable **Delay JavaScript execution** for the affected inline snippets, or
- Remove the `defer` attribute from those `type="text/rocketlazyloadscript"` tags so the validator no longer flags them.
- Re-run the W3C validator after the change; target 0 errors.
**3M. Drop or defer the unused jQuery bundle** `Performance`
- **Impact:** Unused JavaScript (23 KB), main-thread work
- **Problem:** PSI reports 23 KB wasted from `jquery.bfe1bb19d13b3c17b682.min.js` (30.8 KB transferred in the runtime capture).
- **Solution:**
- Audit theme scripts for jQuery dependencies and migrate remaining ones to vanilla JS.
- If jQuery is only needed for the cookie-consent/iframe-manager widgets, load it on interaction rather than on page load.
- Otherwise keep it deferred and drop any jQuery plugins the theme no longer uses.
**3N. Emit valid structured data with a known @type** `SEO`
- **Impact:** Rich results eligibility, `structuredData` modeled audit
- **Problem:** The single JSON-LD block is reported as valid but its type resolves to "Unknown", and PSI's modeled `structuredData` audit fails.
- **Solution:**
- Declare an explicit `@type` (e.g. `Organization`, `WebSite`, `BreadcrumbList`, `CollectionPage`) and `@context: https://schema.org`.
- Validate with the Rich Results Test and Schema Markup Validator after the change.
**3O. Flatten the heading outline and label the unheaded section** `Accessibility`
- **Impact:** Document outline, screen-reader navigation
- **Problem:** The page has 1 `h1`, 30 `h2` and zero `h3`β`h6`, and the W3C validator warns that a `
` at line 2410 lacks a heading.
- **Solution:**
- Introduce `h3` for project sub-details (client, year, stack) so the outline is not a flat list of 30 siblings.
- Either add an `h2` to the flagged section or change it to a `` if it is purely presentational.
**3P. Set a real cache lifetime on the HTML document** `Performance`
- **Impact:** Repeat-visit TTFB, cache hit ratio
- **Problem:** The document response sends `cache-control: max-age=0` with an `expires` equal to the request time, so browsers revalidate the HTML on every navigation despite WP Rocket being active.
- **Solution:**
- Serve the HTML with a short but non-zero TTL, e.g. `Cache-Control: public, max-age=600, s-maxage=3600, stale-while-revalidate=60`.
- Keep `Vary: Accept-Encoding` and purge the page from the WP Rocket cache on publish.
**3Q. Add COOP/CORP, HSTS preload, and hide the Server header** `Security`
- **Impact:** Origin isolation, HSTS preload eligibility, technology disclosure
- **Problem:** `Cross-Origin-Opener-Policy` and `Cross-Origin-Resource-Policy` are missing, HSTS lacks the `preload` directive, and `Server: Apache` discloses the stack.
- **Solution:**
```
Header always set Cross-Origin-Opener-Policy "same-origin"
Header always set Cross-Origin-Resource-Policy "same-origin"
Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"
Header always unset Server
Header always unset X-Powered-By
```
- Submit the domain at hstspreload.org once the preload directive is live.
- Low priority here: no auth or payment surface, so origin isolation is hardening rather than a live exposure.
**3R. Verify touch target sizes flagged by the tapTargets audit** `Accessibility`
- **Impact:** WCAG 2.5.8 target size, mobile usability
- **Problem:** PSI's modeled `tapTargets` audit fails on mobile, and axe's manual-check list flags 44Γ44 px minimum targets.
- **Solution:**
- Audit the header nav, social icons and language switcher on a 375 px viewport.
- Ensure each interactive element has at least a 44Γ44 px hit area, e.g. `padding: 12px; min-width: 44px; min-height: 44px;`.
- Re-run PSI mobile after the change to confirm `tapTargets` passes.
**3S. Fix the 5 W3C validation errors from WP Rocket's lazy-load script type** `Best Practices`
- **Impact:** HTML validity
- **Problem:** W3C reports 5 errors, all of the form "A `script` element with a `type` attribute β¦ must not have a `defer`/`async` attribute" β 4 `defer` and 1 `async` on `
```
```
Header always set Cross-Origin-Opener-Policy "same-origin"
Header always set Cross-Origin-Resource-Policy "same-origin"
Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"
Header unset Server
```
- Submit the domain at hstspreload.org once the preload directive is live.
**3Y. Validate the JSON-LD block and check tap targets** `SEO`
- **Impact:** Rich results eligibility, mobile usability
- **Problem:** PSI's modeled audits flag `structuredData` and `tapTargets` as failing, and the single JSON-LD block is reported with type "Unknown" rather than a recognized schema.org type.
- **Solution:**
- Inspect the JSON-LD block and set an explicit `@type` (e.g. `Organization`, `WebSite`, `Service`) with required properties.
- Test with Google's Rich Results Test and Schema Markup Validator.
- Audit interactive elements for the 44Γ44 px minimum touch target (WCAG 2.5.8) on mobile.