File tree 2 files changed +6
-1
lines changed 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export const sketchesPerPage = 12 as const;
14
14
export const eventsPerPage = 12 as const ;
15
15
16
16
export const cdnLibraryUrl =
17
- `https://cdnjs.cloudflare.com/ajax/libs/p5.js/ ${ p5Version } /p5.min.js` as const ;
17
+ `https://cdn.jsdelivr.net/npm/p5@ ${ p5Version } /lib /p5.min.js` as const ;
18
18
export const fullDownloadUrl =
19
19
`https://github.com/processing/p5.js/releases/download/v${ p5Version } /p5.zip` as const ;
20
20
export const libraryDownloadUrl =
Original file line number Diff line number Diff line change @@ -16,6 +16,11 @@ const handlers = [
16
16
readFileSync ( "./assets/p5.min.js" , { encoding : "utf-8" } ) ,
17
17
) ;
18
18
} ) ,
19
+ http . get ( "https://cdn.jsdelivr.net/npm/p5*" , ( ) => {
20
+ return HttpResponse . text (
21
+ readFileSync ( "./assets/p5.min.js" , { encoding : "utf-8" } ) ,
22
+ ) ;
23
+ } ) ,
19
24
] ;
20
25
21
26
/**
You can’t perform that action at this time.
0 commit comments