Limits and things to know
Look up how much an injectable can hold, and read what to check before you publish.
Look here for how much an injectable can hold, and for what to check before you publish.
Size limits
| What | Limit |
|---|---|
| HTML, Template and Custom HTML & CSS, the HTML | 100,000 characters |
| Script | 50,000 characters |
| CSS, in each place | 50,000 characters |
| Name | 200 characters |
| Description | 2,000 characters |
| Exclusive group (optional) | 120 characters |
| Your own values in a template | 50, of up to 2,048 characters each |
| Settings of a design preset | 50 |
| Anchor selector | 500 characters |
| Wrapper classes | 200 characters |
| Wrapper style | 500 characters |
| Priority (higher renders first) | From -1,000,000 to 1,000,000 |
| Blocks in a stack, hidden ones included | 20 |
| Blocks in one panel of a mega menu | 24 |
| Caption of a mega-menu image | 200 characters |
| Variants of an A/B test | 2 to 5 |
| Conditions and groups in the rules | 100, up to 8 levels deep |
| Addresses of developers' computers | 10 |
Content for a widget or built ahead
With BigCommerce widget and Server-rendered delivery, the whole content must fit in about 48 KB. StoreSpan does not put larger content on your store. The editor of a Blocks injectable warns you before you reach the limit.
Top bar
| What | Limit |
|---|---|
| Messages in one bar | 1 to 6 |
| Message | 300 characters, one line |
| Link address | 2,048 characters |
| Link words | 60 characters |
| Countries per message | Any number, with groups of countries |
| Time each message shows | 2 to 60 seconds, while the bar turns on its own |
| Padding | 0 to 48px top and bottom, 0 to 96px left and right |
| Text size | 10 to 32px |
| Content width | Full width, or 320 to 2,400px |
| Bottom border | 0 to 8px |
| Theme-header selector lists | 500 characters each |
See Top bar for what each setting does.
Check before you publish
| Check | Why |
|---|---|
| The element of Anchor selector is on the page | StoreSpan cannot check it. Without the element, the injectable does not show. |
| The position is not replace by mistake | replace removes the element you point to. |
| The region is in your theme | A widget in a region that your theme lacks shows nowhere. |
| You have read every script | A script can read everything on the page, and StoreSpan does not stop a script that runs too long. See Script. |
| The content has an element that closes it | Without it, Snooze after a dismissal (days) never starts. |
| You looked at the injectable on your storefront | The preview does not show your theme, the place on the page or the wrapper element. |
See Delivery, Targeting, schedule and frequency cap and Preview.
Where injectables never show
The StoreSpan script does not run on the checkout, so injectables with Loader script delivery do not show there.
A BigCommerce widget or a Server-rendered injectable is different. When its region is on every page of your theme, it shows on the checkout and the order pages too. StoreSpan cannot keep it off them. See Delivery.
Who sees an injectable
| Delivery | Who sees it |
|---|---|
| Loader script | The shoppers that the rules, the schedule and the frequency cap allow. |
| BigCommerce widget | The same. |
| Server-rendered | Every shopper, on every page that has the region, or on the one page you chose. |
| Static Page | Every shopper who opens the page, at all times. |
When StoreSpan cannot build a Server-rendered injectable ahead, the StoreSpan script shows it. It then shows on every page that has the element, and the schedule and the frequency cap apply. See When StoreSpan cannot build the content ahead.
When several injectables are on one page
The Priority and the Exclusive group decide. See Details.