From 33351bae24fd680d06aa0a4e9265de2ec74870af Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Tue, 2 May 2017 23:02:17 -0400 Subject: [PATCH] LP#1685840 Release notes for Google Books Preview rewrite Signed-off-by: Dan Scott Signed-off-by: Galen Charlton --- .../OPAC/google_books_preview_no_dojo.adoc | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 docs/RELEASE_NOTES_NEXT/OPAC/google_books_preview_no_dojo.adoc diff --git a/docs/RELEASE_NOTES_NEXT/OPAC/google_books_preview_no_dojo.adoc b/docs/RELEASE_NOTES_NEXT/OPAC/google_books_preview_no_dojo.adoc new file mode 100644 index 0000000000..e96e5ea56a --- /dev/null +++ b/docs/RELEASE_NOTES_NEXT/OPAC/google_books_preview_no_dojo.adoc @@ -0,0 +1,20 @@ +Google Books Preview rewrite +^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +The Google Books Preview functionality in record detail pages has been +rewritten to modernize its style and optimize its performance: + +* The Dojo JavaScript framework is no longer used, saving approximately + 150K of JavaScript and CSS and four network requests per page load. +* The Embedded Viewer is not loaded unless a possible preview is found, + saving more network and memory overhead. +* The Google Books Loader is used to load the Embedded Viewer instead of the + https://productforums.google.com/forum/#!topic/books-api/lZrq5cWKrTo;context-place=forum/books-api[deprecated + Google Loader]. +* All variables are self-contained and do not pollute the global namespace. +* Event listeners are registered to handle clicks, rather than attaching + `href="javascript:function()"` to elements. +* Book previews are displayed in a panel sized according to the viewport + of the browser, improving its appearance on both mobile and desktop + browsers. +* The rewritten code is now served up directly from + `/js/ui/default/opac/ac_google_books.js` rather than as a TT2 template. -- 2.43.2