]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP#1411699: Make Dojo conditional for advanced search
authorDan Scott <dscott@laurentian.ca>
Sun, 2 Apr 2017 14:45:00 +0000 (10:45 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Wed, 17 May 2017 15:18:54 +0000 (11:18 -0400)
commit2a22a678718cfbe40982a980b260a2908d2a3b63
treebea35e62221a36a320669c476a7ffc44f5e3ab16
parent89f763b5c92314b9a8db8024e0680f3808e99117
LP#1411699: Make Dojo conditional for advanced search

While the copy locations filter is a core feature, it surfaces only in the
advanced search page. The current behaviour forces Dojo and all of its
dependencies to be loaded for every catalogue page.

By making it conditional on the advanced search page, we save approximately
600ms to first meaningful paint on the rest of the catalogue pages.

To test:

[1] Apply the two-patch series
[2] After applying the patch, verify that the copy location filter
    on the advance search page functions. Also verify that
    the JavaScript on the record details page that tweaks
    the visiblity of sub-tabs in the added content tab
    continue to work.
[3] Verify that other components that currently depend on Dojo,
    such as the ebook API, continue to work.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/templates/opac/parts/header.tt2