Personal Site
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Attempt to improve performance of the spotify sdk

TODO: defer nowplaying contents till its ready to be inserted via streaming
aka, somehow move the contents to the end of the dom but make it go in at the same place

+5
+5
src/pages/index.astro
··· 3 3 import Feeds from "/components/home/feeds/Feeds.astro"; 4 4 import Landing from "/components/home/Landing.astro"; 5 5 import NowPlaying from "/components/home/playing/NowPlaying.astro"; 6 + // start the sdk setup while other components and requests are ongoing 7 + // so that the sdk is ready or closer to being ready when needed 8 + import { sdk } from "/components/home/playing/spotify"; 9 + // prevent treeshaking 10 + sdk; 6 11 --- 7 12 8 13 <Base>