Skip to content

[5.x] Remove PreloadManager::prerender() - #18

Open
Hackwar wants to merge 1 commit into
joomla-framework:5.x-devfrom
Hackwar:5.x-remove-prerender
Open

Hackwar wants to merge 1 commit into
joomla-framework:5.x-devfrom
Hackwar:5.x-remove-prerender

Conversation

@Hackwar

@Hackwar Hackwar commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Summary of Changes

Removes PreloadManager::prerender(), which #17 deprecates in 4.x: browsers no longer prerender pages for rel=prerender (Chromium only prefetches the resource and moved prerendering to the Speculation Rules API; Firefox and Safari never supported it). link($uri, 'prerender') still adds the header entry for anyone who needs it.

Testing Instructions

php vendor/bin/phpunit (the prerender() test is removed with the method), php vendor/bin/phpstan analyse.

Documentation Changes Required

  • New docs/v4-to-v5-update.md (the only 5.x PR in preload, so it creates the guide) with the removal and the replacement.
  • docs/index.md links the new guide. The owner's docs PR [4.x] Update documentation #12 restructures docs/index.md on 4.x-dev, so the entry has to be carried over when 4.x-dev is merged up.
  • The "Prerender a resource" section is removed from docs/classes/PreloadManager.md.

Depends on #17. When 4.x-dev is merged into 5.x-dev, check that the prerender() method, its deprecation note in docs/classes/PreloadManager.md and the expectUserDeprecationMessage() in testPrerender from #17 do not come back. symfony/deprecation-contracts, added by #17, can be dropped on 5.x if no other deprecation remains.

🤖 Generated with Claude Code

The helper was deprecated in 4.x because browsers no longer prerender
pages for rel=prerender. link($uri, 'prerender') still adds the header
entry for anyone who needs it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant