# Show loading GIF while Action Links Run

> Please note that this is now available as a plugin for easier installation. While you can use this document as a reference, the recommended method to add…

Source: https://tadabase.com/docs/snippets/show-loading-gif-while-action-links-run  
Status: Not yet re-checked. Moved from our previous help site and not yet re-checked against the current product. Last edited Sep 20, 2024.

> **Warning:** Please note that this is now available as a plugin for easier installation. While you can use this document as a reference, the recommended method to add this functionality is through the plugin installation wizard. Learn more about plugins [here](https://tadabase.com/docs).

![Screenshot for “Show loading GIF while Action Links Run”](https://community.tadabase.io/uploads/default/original/2X/1/1eb08a1ed235e5a472312f09044a36ac5d749759.gif)

This is a great way to customize your action links. As they run the text will read "loading..." with the loading gif next to it. Follow the guide below to complete this customization.

**Step 1**

**Add a CSS class to the Action Links column called “myAction.”**

![Screenshot for “Show loading GIF while Action Links Run”](https://community.tadabase.io/uploads/default/original/2X/4/480b9ce567cbe56f9375149c6e0a39ccd4d5784d.png)

**Step 2**

**Add the following CSS to the page.**

```
.td-link.disabled {
    display: none !important;
}
```

![Screenshot for “Show loading GIF while Action Links Run”](https://community.tadabase.io/uploads/default/original/2X/4/4d2e91d67f8aa0075338cc11ca0b79c073518386.png)

**Step 3**

**Find the Component ID for your table.**

![Screenshot for “Show loading GIF while Action Links Run”](https://community.tadabase.io/uploads/default/original/2X/3/37a3d6cda2b3329c262b7513eec0b9f79e9132f8.png)

**Step 4**

**Add the following JavaScript to the page, but change “component_ID” to your tables ID in Step 3.**

```
TB.render('component_ID', function(data) {
    setTimeout(function() {
        $('.myAction .td-link').each(function(index) {
            new MutationObserver(function(mutations, observer) {
                mutations.forEach(function(mutation) {
                    if ($(mutation.target).hasClass('disabled')) {
                        $(mutation.target).parent().append('<div class="action-link-loader"><span>Loading... </span><img src="../../../images/spinner-light.gif" width="12px"></div>');
                    } else {
                        $(mutation.target).parent().find('.action-link-loader').remove();
                    }
                });
            }).observe(this, {
                attributes: true,
                attributeFilter: ['class']
            });
        });
    }, 25);
});
```

![Screenshot for “Show loading GIF while Action Links Run”](https://community.tadabase.io/uploads/default/original/2X/f/f621c5760a96c627fce0ef449f53d5d7f48679ba.png)

**Original Community Post:**

[https://community.tadabase.io/t/show-loading-gif-while-action-links-run/1862](https://community.tadabase.io/t/show-loading-gif-while-action-links-run/1862)
