StockKeyInformation lazy loading
This commit is contained in:
parent
7c59090bdb
commit
6d733f14c4
@ -52,7 +52,7 @@ export let similarstock;
|
|||||||
<td class="text-gray-200">
|
<td class="text-gray-200">
|
||||||
<div class="flex flex-row items-center">
|
<div class="flex flex-row items-center">
|
||||||
<div class="rounded-full w-10 h-10 relative flex items-center justify-center">
|
<div class="rounded-full w-10 h-10 relative flex items-center justify-center">
|
||||||
<img style="clip-path: circle(50%);" class="w-6 h-6 rounded-full" src={`https://financialmodelingprep.com/image-stock/${item.symbol}.png`} loading="lazy"/>
|
<img style="clip-path: circle(50%);" class="w-6 h-6 rounded-full" src={`https://financialmodelingprep.com/image-stock/${item?.symbol}.png`} loading="lazy"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-col ml-3 w-full">
|
<div class="flex flex-col ml-3 w-full">
|
||||||
<span class="text-blue-400 text-sm font-medium">{item?.symbol}</span>
|
<span class="text-blue-400 text-sm font-medium">{item?.symbol}</span>
|
||||||
|
|||||||
@ -1167,7 +1167,9 @@ function changeChartType() {
|
|||||||
|
|
||||||
|
|
||||||
{#if $screenWidth <= 1022} <!--BUG: Dont remove since when changing ETF symbol display freezes-->
|
{#if $screenWidth <= 1022} <!--BUG: Dont remove since when changing ETF symbol display freezes-->
|
||||||
|
|
||||||
<div class="w-full mt-10 m-auto sm:p-6 lg:hidden ">
|
<div class="w-full mt-10 m-auto sm:p-6 lg:hidden ">
|
||||||
|
<Lazy>
|
||||||
<h3 class="cursor-pointer flex flex-row items-center text-white text-xl sm:text-3xl font-bold">
|
<h3 class="cursor-pointer flex flex-row items-center text-white text-xl sm:text-3xl font-bold">
|
||||||
Key Information
|
Key Information
|
||||||
</h3>
|
</h3>
|
||||||
@ -1175,6 +1177,7 @@ function changeChartType() {
|
|||||||
<svelte:component this={Comp}
|
<svelte:component this={Comp}
|
||||||
data={data} />
|
data={data} />
|
||||||
{/await}
|
{/await}
|
||||||
|
</Lazy>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user