Allow the image zoom Javascript to be cached.

master
Pacman Ghost 2 years ago
parent f080805e77
commit 1446d97ac3
  1. 5
      web/src/PreviewableImage.js

@ -18,7 +18,10 @@ export class PreviewableImage extends React.Component
static initPreviewableImages() {
// load the imageZoom script
$.getScript( "/jQuery/imageZoom/jquery.imageZoom.js" ) ;
$.getScript( {
url: "/jQuery/imageZoom/jquery.imageZoom.js",
cache: true,
} ) ;
// load the imageZoom CSS
let cssNode = document.createElement( "link" ) ;
cssNode.type = "text/css" ;

Loading…
Cancel
Save