# Displaying a "loading" message when switching pages

**URL:** <https://forum.wixstudio.com/t/displaying-a-loading-message-when-switching-pages/31995>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [October 10, 2020, 12:24pm UTC](https://forum.wixstudio.com/t/displaying-a-loading-message-when-switching-pages/31995 "2020-10-10T12:24:52Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnstanleyshelley](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/johnstanleyshelley/32/24005_2.png) [@johnstanleyshelley](https://forum.wixstudio.com/u/johnstanleyshelley)\
**Post date:** [October 10, 2020, 12:24pm UTC](https://forum.wixstudio.com/t/displaying-a-loading-message-when-switching-pages/31995/1 "2020-10-10T12:24:52Z")

</div>

I just spent a week building an awesome website with WIX. Love the editor and all the features.

When testing it in the real world, however, the pages seem to load really slow. I’ve followed all the optimization guidelines, but unless I remove all my video content and event calendars, it takes a couple seconds to load.

What I want to do, and I thought this might be possible with Corvid and a little javascript was to respond to all links immediately wiht a “loading” message or just to dim the screen or something - just to give the user a visual clue that SOMETHING is happening. Right now the user may think the link is broken and give up. Two seconds is way too long to wait.

Anyway, is this something that can get accomplished with Corvid? If so can anyone give me a nudge in the right direction as to how to start.

Thanks.

---

<div class="post-metadata">

**Author:** ![orhirschhorn14](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/orhirschhorn14/32/23213_2.png) [@orhirschhorn14](https://forum.wixstudio.com/u/orhirschhorn14)\
**Post date:** [October 10, 2020, 1:56pm UTC](https://forum.wixstudio.com/t/displaying-a-loading-message-when-switching-pages/31995/2 "2020-10-10T13:56:00Z")

</div>

I had the same issue,  
my solution was to display a “loading gif” while all of the information has been calculated, and only after Its done hide the gif and show the rest of the page.  
I’m not sure this is the best solution but it works for me

---

<div class="post-metadata">

**Author:** ![johnstanleyshelley](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/johnstanleyshelley/32/24005_2.png) [@johnstanleyshelley](https://forum.wixstudio.com/u/johnstanleyshelley)\
**Post date:** [October 10, 2020, 2:02pm UTC](https://forum.wixstudio.com/t/displaying-a-loading-message-when-switching-pages/31995/3 "2020-10-10T14:02:04Z")

</div>

That would be perfectly fine. I just have no idea how to do that on WIX or with Corvid. Can you pass along your snippit?

Thanks.

---

<div class="post-metadata">

**Author:** ![orhirschhorn14](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/orhirschhorn14/32/23213_2.png) [@orhirschhorn14](https://forum.wixstudio.com/u/orhirschhorn14)\
**Post date:** [October 10, 2020, 2:05pm UTC](https://forum.wixstudio.com/t/displaying-a-loading-message-when-switching-pages/31995/4 "2020-10-10T14:05:58Z")

</div>

What elements do you have in your page?that takes time to load

---

<div class="post-metadata">

**Author:** ![johnstanleyshelley](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/johnstanleyshelley/32/24005_2.png) [@johnstanleyshelley](https://forum.wixstudio.com/u/johnstanleyshelley)\
**Post date:** [October 10, 2020, 2:51pm UTC](https://forum.wixstudio.com/t/displaying-a-loading-message-when-switching-pages/31995/5 "2020-10-10T14:51:48Z")

</div>

I do have a WIX video at the top of three of my pages. However, removing that element only makes a small difference in load time.

---

<div class="post-metadata">

**Author:** ![johnstanleyshelley](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/johnstanleyshelley/32/24005_2.png) [@johnstanleyshelley](https://forum.wixstudio.com/u/johnstanleyshelley)\
**Post date:** [October 10, 2020, 2:52pm UTC](https://forum.wixstudio.com/t/displaying-a-loading-message-when-switching-pages/31995/6 "2020-10-10T14:52:35Z")

</div>

here’s the site: johnstanleyshelley dot com.

---

<div class="post-metadata">

**Author:** ![orhirschhorn14](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/orhirschhorn14/32/23213_2.png) [@orhirschhorn14](https://forum.wixstudio.com/u/orhirschhorn14)\
**Post date:** [October 10, 2020, 3:09pm UTC](https://forum.wixstudio.com/t/displaying-a-loading-message-when-switching-pages/31995/7 "2020-10-10T15:09:01Z")

</div>

In my phone and pc the site loads very fast.  
mabye this is a problem with your Internet?

---

<div class="post-metadata">

**Author:** ![thiliniprasangika11](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/thiliniprasangika11/32/22161_2.png) [@thiliniprasangika11](https://forum.wixstudio.com/u/thiliniprasangika11)\
**Post date:** [October 17, 2020, 7:30am UTC](https://forum.wixstudio.com/t/displaying-a-loading-message-when-switching-pages/31995/8 "2020-10-17T07:30:20Z")

</div>

Hi, if you are still working on this, then check this one

> **[Create a Pre-Loader | WixCreate | Wix Code - Corvid](https://www.wixcreate.com/create-a-pre-loader)**
>
> Tutorial: When your Wix website loads, it shows a blank white. They say you have only a few seconds to capture someone's attention when they visit your website. A pre-loader is key to retaining website visitors.
