Show a Preloader Only Once Per Day

Show a Preloader Only Once Per Day

Hide a preloader after its been seen once in a 24 hours (1 day) period of time by storing its status in local storage to ensure it works for even users who have cookie blockers enabled.

Be sure to update the ID used in the 'preloaderElement' variable to the ID used on your own element. You can also adjust the amount of time the element should be shown again by changing the milliseconds calculation in the 'waitTime' variable.

Have feedback or a question related to this item? Drop us some feedback!

Curated: 
1.3.24

Similar items

Items
2776
Search

Setting Cookies

8.25.21

Birthday Age Gate Modal Overlay

5.10.22

Fetch and Nest Content From Another Page

3.17.22

Hide/Show Based on Breakpoints and Count of Items

3.26.21

Show/Hide Based on Date/Time

3.27.20

Restock

View Restock

Reload Page After Form Submit

12.4.19

Email Address Input Validation

12.15.23

Remove https:// From Text Link

9.5.23

Run Javascript on Mobile Only

7.26.23

Skip to Main Nav Link

6.14.23

Randomize Button Text on Click

1.12.23

Get Website Meta Data w/ Airtable Script

1.10.23

Get YouTube Thumbnails w/ Airtable Script

12.22.22

Compress Images w/ Airtable Script

10.10.22

Get Image Size w/ Airtable Script

10.10.22

Simple Countdown to Date/Time

10.6.22

CSS Logo Marquee / Ticker

5.25.22

View All or Show Less List Pagination

4.11.22

Set Referrer URL as Hidden Input

3.28.22

Set Text From URL Parameters

2.19.22

Round Number to Nearest Integer

2.19.22

Add Commas to Numbers

2.19.22

Prevent Body Scroll on Click

2.11.22

Bummer, no results

Try a different search/filter combo, or drop us some feedback if there is something missing you would love to see!

Reset filters

Subscribe for updates

Get updates on the latest curated resources and be the first to hear of new features.

Subscribe