1 Google Books Preview rewrite
2 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3 The Google Books Preview functionality in record detail pages has been
4 rewritten to modernize its style and optimize its performance:
6 * The Dojo JavaScript framework is no longer used, saving approximately
7 150K of JavaScript and CSS and four network requests per page load.
8 * The Embedded Viewer is not loaded unless a possible preview is found,
9 saving more network and memory overhead.
10 * The Google Books Loader is used to load the Embedded Viewer instead of the
11 https://productforums.google.com/forum/#!topic/books-api/lZrq5cWKrTo;context-place=forum/books-api[deprecated
13 * All variables are self-contained and do not pollute the global namespace.
14 * Event listeners are registered to handle clicks, rather than attaching
15 `href="javascript:function()"` to <a> elements.
16 * Book previews are displayed in a panel sized according to the viewport
17 of the browser, improving its appearance on both mobile and desktop
19 * The rewritten code is now served up directly from
20 `/js/ui/default/opac/ac_google_books.js` rather than as a TT2 template.