---
title: "Discussion on \"{JS} {Svelte} Display a Loader for a minimum amount of time.\" | Hashnode"
description: "Discussion on \"{JS} {Svelte} Display a Loader for a minimum amount of time.\". Sometimes, when we display a loader while data is being fetched/processed, the loading time is so short the loader flashes briefly. Here's how to fix it.\nPlease note: although the following examples are for Svelte, the logic can be adapted for other ..."
url: "https://hashnode.com/posts/js-svelte-display-a-loader-for-a-minimum-amount-of-time/61f1df0b87fd2728e7cd6bcc"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [{JS} {Svelte} Display a Loader for a minimum amount of time.](https://vincenzoraco.dev/js-svelte-display-a-loader-for-a-minimum-amount-of-time?utm_source=hashnode&utm_medium=feed)

Sometimes, when we display a loader while data is being fetched/processed, the loading time is so short the loader flashes briefly. Here's how to fix it. Please note: although the following examples are for Svelte, the logic can be adapted for other ...

Jan 26, 2022 · 2 min read · vincenzoraco.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#svelte](https://hashnode.com/tag/svelte)
-   [#vuejs](https://hashnode.com/tag/vuejs)
-   [#reactjs](https://hashnode.com/tag/reactjs)

## Written by

[Vincenzo Raco](https://hashnode.com/@vincenzoracoDEV)

@vincenzoracoDEV · Perth, AU

  
[View profile](https://hashnode.com/@vincenzoracoDEV)

Senior Web Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
