fix(app): code splitting for web load perf gains
This commit is contained in:
parent
3f463bc916
commit
b88bcd49fd
9 changed files with 151 additions and 84 deletions
|
|
@ -175,12 +175,13 @@ export function List<T>(props: ListProps<T> & { ref?: (ref: ListRef) => void })
|
|||
fallback={
|
||||
<div data-slot="list-empty-state">
|
||||
<div data-slot="list-message">
|
||||
{props.emptyMessage ?? "No results"} for <span data-slot="list-filter">"{filter()}"</span>
|
||||
{props.emptyMessage ?? (grouped.loading ? "Loading" : "No results")} for{" "}
|
||||
<span data-slot="list-filter">"{filter()}"</span>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
>
|
||||
<For each={grouped()}>
|
||||
<For each={grouped.latest}>
|
||||
{(group) => (
|
||||
<div data-slot="list-group">
|
||||
<Show when={group.category}>
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ export function Markdown(
|
|||
async (markdown) => {
|
||||
return marked.parse(markdown)
|
||||
},
|
||||
{ initialValue: "" },
|
||||
)
|
||||
return (
|
||||
<div
|
||||
|
|
@ -23,7 +24,7 @@ export function Markdown(
|
|||
...(local.classList ?? {}),
|
||||
[local.class ?? ""]: !!local.class,
|
||||
}}
|
||||
innerHTML={html()}
|
||||
innerHTML={html.latest}
|
||||
{...others}
|
||||
/>
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue