viewerLoad = window.addEventListener('WebComponentsReady', function() {
console.log('WebComponentsReady: loading plugins...');
const hyperGrid = loadPerspectiveViewerPlugins();
const viewer = document.getElementsByTagName('perspective-viewer')[0];
console.log('WebComponentsReady: loading data:', dataUrl);
loadData(dataUrl).then(buffer => {
console.log('Loading view data...');
viewer.load(buffer);
viewer.toggleConfig();
});
})