This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author techtonik
Recipients georg.brandl, techtonik
Date 2010-01-18.11:22:33
SpamBayes Score 5.9275262e-05
Marked as misclassified No
Message-id <1263813756.21.0.177298019547.issue7731@psf.upfronthosting.co.za>
In-reply-to
Content
docs.python.org site search is sluggish or may seem not working at all.

The reason is that before search starts, it requires a 800k+ index file to be loaded http://docs.python.org/searchindex.js

This file is usually cached. You might not notice sluggishness if it was cached when you loaded search page and were typing search query, but when you redirected to search page with get parameters the search is assumed to be started immediately. Unfortunately, JS execution delayed until index is loaded. Time controls are not updated, there is no indication what is going on and search may appear broken. User then clicks search button again and index starts loading anew.

The solution is to load index dynamically after first search request is made.

Attached patch is not tested with real server.
History
Date User Action Args
2010-01-18 11:22:36techtoniksetrecipients: + techtonik, georg.brandl
2010-01-18 11:22:36techtoniksetmessageid: <1263813756.21.0.177298019547.issue7731@psf.upfronthosting.co.za>
2010-01-18 11:22:34techtoniklinkissue7731 messages
2010-01-18 11:22:34techtonikcreate