Skip to content

Commit

Permalink
[PLAT-4506] Using JSDelivr instead of Unpkg for performance improveme…
Browse files Browse the repository at this point in the history
…nts (#158)

* [PLAT-4506] Using JSDelivr instead of Unpkg for performance improvements

* using more recent version of the sdk

* bump version
  • Loading branch information
MadisonEhlers-Vertex authored Jul 22, 2024
1 parent 5988444 commit 12ce478
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vertexvis/cli",
"version": "0.18.2",
"version": "0.18.3",
"description": "The Vertex platform command-line interface (CLI).",
"license": "MIT",
"author": "Vertex Developers <[email protected]> (https://developer.vertexvis.com)",
Expand Down
10 changes: 5 additions & 5 deletions src/lib/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ export function generateHtml(streamKey: string, basePath: string): string {
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
rel="stylesheet"
href="https://unpkg.com/@vertexvis/viewer@0.15.x/dist/viewer/viewer.css"
href="https://cdn.jsdelivr.net/npm/@vertexvis/viewer@0.21.x/dist/viewer/viewer.css"
/>
<script
type="module"
src="https://unpkg.com/@vertexvis/viewer@0.15.x/dist/viewer/viewer.esm.js"
src="https://cdn.jsdelivr.net/npm/@vertexvis/viewer@0.21.x/dist/viewer/viewer.esm.js"
></script>
<script
nomodule
src="https://unpkg.com/@vertexvis/viewer@0.15.x/dist/viewer.js"
src="https://cdn.jsdelivr.net/npm/@vertexvis/viewer@0.21.x/dist/viewer.js"
></script>
<style>
html,
Expand All @@ -83,8 +83,8 @@ export function generateHtml(streamKey: string, basePath: string): string {
</vertex-viewer>
<script type="module">
import { applyPolyfills, defineCustomElements } from 'https://unpkg.com/@vertexvis/viewer@0.15.x/loader/index.js';
import { ColorMaterial } from 'https://unpkg.com/@vertexvis/viewer@0.15.x/dist/esm/index.mjs';
import { applyPolyfills, defineCustomElements } from 'https://cdn.jsdelivr.net/npm/@vertexvis/viewer@0.21.x/loader/index.js';
import { ColorMaterial } from 'https://cdn.jsdelivr.net/npm/@vertexvis/viewer@0.21.x/dist/esm/index.mjs';
async function main() {
await applyPolyfills();
Expand Down

0 comments on commit 12ce478

Please sign in to comment.