Automattic / Automattic/jetpack
Related Posts: remove unused query arguments to improve performance
- Dominant language
- PHP
- Stars
- 1.8k
- Forks
- 898
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 774
Description
Currently, whenever someone clicks on the Jetpack Related Posts links, it is redirected to a query string to measure the stats (I don't know what's the point of this as I cannot see any option to measure or view it at least.)
But the point is, this prevents the sites from benefiting the speed enhancement features such as "preloading the links in the viewport", or hover, and similar functionalities provided by other tools. Because the plugin redirects the URLs anyways whether it is preloaded or not.
So, what is the point of this "Stats"? I cannot see an option to view it myself. And how can I disable that feature and make the related post links a regular link without any redirections?
Contributor guide
Research direction
Start by locating the Jetpack Related Posts code that generates or redirects clicked links and identify the query arguments used for stats. Confirm how the stats behavior is consumed before removing the unused arguments, then verify that related-post links resolve directly without the extra redirect.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- backend, performance
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100