Automattic / Automattic/jetpack

Instant Search: set a timeout for URL rewriting

Open
#14,180 1 comment 1 reaction 0 assignees View on GitHub
[Feature] Search [Status] Stale
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

#### Steps to reproduce the issue

- Enter “posts” as your search query.

#### What I expected

Press back to go to the previous page.

#### What happened instead

Every character entered in the search box triggered a URL rewrite, making the process of going back in history in the browser tedious.

Could we set a reasonable timeout so that the URL rewriting only happens if a customer hasn't entered any characters in the last X ms? If so, what would be a good value for this?

#### Screen capture

![jps-urls](https://user-images.githubusercontent.com/390760/70233559-bfc1d900-1756-11ea-918a-edcf21c1f869.gif)

Contributor guide

Open the contributing guide

Research direction

No file or test is named in the issue. Start at the Instant Search URL-rewriting entry point and reproduce the behavior by entering “posts” one character at a time. Done means URL rewriting waits until typing has paused for an agreed interval, so browser Back does not require stepping through every character.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend, search
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.