1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-23 21:18:19 +01:00
phorge-phorge/webroot/rsrc/js/core
epriestley a0262c0b4f Remove tokenizer.ondemand, and always load on demand
Summary:
Ref T4420. Tokenizers currently operate in "preload" or "ondemand" modes. In the former mode, which is default, they'll try to load the entire result list when a page loads.

The theory here was that this would slightly improve the experience for small installs, and once they got big enough they could switch to "ondemand". In practice, several issues have arisen:

  - We generally don't have a good mechanism for telling installs that they should tweak perf config -- `metamta.send-immediately` is the canonical example here. Some large installs are probably affected negatively by not knowing to change this setting, and having settings like this is generally annoying.
  - We have way way too much config now.
  - With the advent of ApplicationSearch, pages like Maniphest make many redundant loads to prefill sources like projects. Most of the time, this data is not used. It's far simpler to switch everything to ondemand than try to deal with this, and dealing with this would mean creating two very complex divergent pathways in the codebase for a mostly theoretical performance benefit which only impacts tiny installs.
  - We've been using `tokenizer.ondemand` forever on `secure.phabricator.com` since we have many thousands of user accounts, and it doesn't seem sluggish and works properly.

Removing this config is an easy fix which makes the codebase simpler.

I've retained the ability to use preloaded sources, since they may make sense in some cases (in at least one case -- task priorities -- adding a static source pathway might make sense), and they're part of Javelin itself. However, the code will no longer ever go down that pathway.

Test Plan: Used `secure.phabricator.com` for years with this setting enabled.

Reviewers: btrahan, chad

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T4420

Differential Revision: https://secure.phabricator.com/D8232
2014-02-14 10:24:40 -08:00
..
behavior-active-nav.js Use JsShrink if jsxmin is not available 2013-05-18 17:04:22 -07:00
behavior-audio-source.js Implement macros as audio sources 2013-09-27 16:02:02 -07:00
behavior-autofocus.js Move js/application/core/ one level up 2013-04-23 10:56:46 -07:00
behavior-crop.js Move js/application/core/ one level up 2013-04-23 10:56:46 -07:00
behavior-dark-console.js Display bullet next to request with errors in DarkConsole. 2013-04-25 18:30:13 -07:00
behavior-device.js Move js/application/core/ one level up 2013-04-23 10:56:46 -07:00
behavior-drag-and-drop-textarea.js Move js/application/core/ one level up 2013-04-23 10:56:46 -07:00
behavior-error-log.js Move js/application/core/ one level up 2013-04-23 10:56:46 -07:00
behavior-fancy-datepicker.js Allow datetime inputs to be optional 2013-05-30 16:19:43 -07:00
behavior-file-tree.js Move js/application/core/ one level up 2013-04-23 10:56:46 -07:00
behavior-form.js Move js/application/core/ one level up 2013-04-23 10:56:46 -07:00
behavior-gesture.js Move js/application/core/ one level up 2013-04-23 10:56:46 -07:00
behavior-global-drag-and-drop.js Use JsShrink if jsxmin is not available 2013-05-18 17:04:22 -07:00
behavior-history-install.js Move js/application/core/ one level up 2013-04-23 10:56:46 -07:00
behavior-hovercard.js Use JsShrink if jsxmin is not available 2013-05-18 17:04:22 -07:00
behavior-keyboard-pager.js Move js/application/core/ one level up 2013-04-23 10:56:46 -07:00
behavior-keyboard-shortcuts.js Move js/application/core/ one level up 2013-04-23 10:56:46 -07:00
behavior-konami.js Move js/application/core/ one level up 2013-04-23 10:56:46 -07:00
behavior-lightbox-attachments.js Use JsShrink if jsxmin is not available 2013-05-18 17:04:22 -07:00
behavior-line-linker.js Line highlighting for pastes 2013-08-04 12:12:37 -07:00
behavior-more.js Move js/application/core/ one level up 2013-04-23 10:56:46 -07:00
behavior-object-selector.js Update ObjectSelector CSS 2013-11-30 19:47:20 -08:00
behavior-oncopy.js Use JsShrink if jsxmin is not available 2013-05-18 17:04:22 -07:00
behavior-phabricator-nav.js Use JsShrink if jsxmin is not available 2013-05-18 17:04:22 -07:00
behavior-phabricator-remarkup-assist.js Add Link button to Remarkup assist 2013-10-17 18:57:40 -07:00
behavior-refresh-csrf.js Use JsShrink if jsxmin is not available 2013-05-18 17:04:22 -07:00
behavior-remarkup-preview.js Partially generalize Remarkup previews and add support to Differential 2013-08-05 10:46:39 -07:00
behavior-reveal-content.js Use JsShrink if jsxmin is not available 2013-05-18 17:04:22 -07:00
behavior-search-typeahead.js Use ApplicationPHIDs to power object name typehaead results 2013-07-29 12:04:17 -07:00
behavior-select-on-click.js Improve repository hinting and feedback 2013-11-01 17:35:43 -07:00
behavior-toggle-class.js Move js/application/core/ one level up 2013-04-23 10:56:46 -07:00
behavior-tokenizer.js Move js/application/core/ one level up 2013-04-23 10:56:46 -07:00
behavior-tooltip.js Move js/application/core/ one level up 2013-04-23 10:56:46 -07:00
behavior-watch-anchor.js Move js/application/core/ one level up 2013-04-23 10:56:46 -07:00
behavior-workflow.js Add a synthetic DOM event to JX.Workflow for form submission 2013-10-14 11:58:38 -07:00
Busy.js Fix full width form layouts 2013-07-03 20:24:28 -07:00
DragAndDropFileUpload.js Use JsShrink if jsxmin is not available 2013-05-18 17:04:22 -07:00
DraggableList.js Send appropriate requests to the server when dragging cards on project boards 2014-01-13 12:24:36 -08:00
DropdownMenu.js Make the quick create menu more or less work correctly 2014-01-28 20:19:20 -08:00
DropdownMenuItem.js Make some dropdown CSS more specific 2013-10-14 11:50:05 -07:00
FileUpload.js Use JsShrink if jsxmin is not available 2013-05-18 17:04:22 -07:00
Hovercard.js Use JsShrink if jsxmin is not available 2013-05-18 17:04:22 -07:00
KeyboardShortcut.js Move js/application/core/ one level up 2013-04-23 10:56:46 -07:00
KeyboardShortcutManager.js Move js/application/core/ one level up 2013-04-23 10:56:46 -07:00
MultirowRowManager.js Move js/application/core/ one level up 2013-04-23 10:56:46 -07:00
Notification.js Move js/application/core/ one level up 2013-04-23 10:56:46 -07:00
phtize.js Use JsShrink if jsxmin is not available 2013-05-18 17:04:22 -07:00
Prefab.js Remove tokenizer.ondemand, and always load on demand 2014-02-14 10:24:40 -08:00
ShapedRequest.js Move js/application/core/ one level up 2013-04-23 10:56:46 -07:00
TextAreaUtils.js Move js/application/core/ one level up 2013-04-23 10:56:46 -07:00
ToolTip.js Use JsShrink if jsxmin is not available 2013-05-18 17:04:22 -07:00