mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-08-03 19:38:36 -04:00
Reduce search window size for speed
Former-commit-id: 127ca56358fc8ddc602334b19d204e8196d96820 [formerly 6d8a52ad5bfd4d02699de32396e7481d6cb46464] Former-commit-id: 84aef85e151f477e60f2dddd2a3a41c691466ee3
This commit is contained in:
parent
7214f24ef5
commit
6a303b34f0
@ -29,7 +29,7 @@
|
|||||||
define(['jquery', 'zimArchiveLoader', 'util', 'uiUtil', 'cookies','abstractFilesystemAccess'],
|
define(['jquery', 'zimArchiveLoader', 'util', 'uiUtil', 'cookies','abstractFilesystemAccess'],
|
||||||
function($, zimArchiveLoader, util, uiUtil, cookies, abstractFilesystemAccess) {
|
function($, zimArchiveLoader, util, uiUtil, cookies, abstractFilesystemAccess) {
|
||||||
|
|
||||||
// Disable any eval() call in jQuery : it's disabled by CSP in any packaged application
|
/*/ Disable any eval() call in jQuery : it's disabled by CSP in any packaged application
|
||||||
// It happens on some wiktionary archives, because there is some javascript inside the html article
|
// It happens on some wiktionary archives, because there is some javascript inside the html article
|
||||||
// Cf http://forum.jquery.com/topic/jquery-ajax-disable-script-eval
|
// Cf http://forum.jquery.com/topic/jquery-ajax-disable-script-eval
|
||||||
jQuery.globalEval = function (code) {
|
jQuery.globalEval = function (code) {
|
||||||
@ -42,7 +42,8 @@ define(['jquery', 'zimArchiveLoader', 'util', 'uiUtil', 'cookies','abstractFiles
|
|||||||
* Maximum number of articles to display in a search
|
* Maximum number of articles to display in a search
|
||||||
* @type Integer
|
* @type Integer
|
||||||
*/
|
*/
|
||||||
var MAX_SEARCH_RESULT_SIZE = 50;
|
//var MAX_SEARCH_RESULT_SIZE = 50;
|
||||||
|
var MAX_SEARCH_RESULT_SIZE = 20; //GK - speed up search
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type ZIMArchive
|
* @type ZIMArchive
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
define(['jquery', 'zimArchiveLoader', 'util', 'uiUtil', 'cookies','abstractFilesystemAccess'],
|
define(['jquery', 'zimArchiveLoader', 'util', 'uiUtil', 'cookies','abstractFilesystemAccess'],
|
||||||
function($, zimArchiveLoader, util, uiUtil, cookies, abstractFilesystemAccess) {
|
function($, zimArchiveLoader, util, uiUtil, cookies, abstractFilesystemAccess) {
|
||||||
|
|
||||||
// Disable any eval() call in jQuery : it's disabled by CSP in any packaged application
|
/*/ Disable any eval() call in jQuery : it's disabled by CSP in any packaged application
|
||||||
// It happens on some wiktionary archives, because there is some javascript inside the html article
|
// It happens on some wiktionary archives, because there is some javascript inside the html article
|
||||||
// Cf http://forum.jquery.com/topic/jquery-ajax-disable-script-eval
|
// Cf http://forum.jquery.com/topic/jquery-ajax-disable-script-eval
|
||||||
jQuery.globalEval = function (code) {
|
jQuery.globalEval = function (code) {
|
||||||
@ -42,7 +42,8 @@ define(['jquery', 'zimArchiveLoader', 'util', 'uiUtil', 'cookies','abstractFiles
|
|||||||
* Maximum number of articles to display in a search
|
* Maximum number of articles to display in a search
|
||||||
* @type Integer
|
* @type Integer
|
||||||
*/
|
*/
|
||||||
var MAX_SEARCH_RESULT_SIZE = 50;
|
//var MAX_SEARCH_RESULT_SIZE = 50;
|
||||||
|
var MAX_SEARCH_RESULT_SIZE = 20; //GK - speed up search
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type ZIMArchive
|
* @type ZIMArchive
|
||||||
|
Loading…
x
Reference in New Issue
Block a user