It would be great to have the option of a fallback in case the Elfsight script doesn’t load, e.g. when the browser blocks JavaScript (or any other case, such as slow internet connection etc.).
For other Elfisight widgets this might be great, too, but for a pricing table it’s crucial because lost visitors mean lost money in this case. It has a direct impact on sales.
So it should be a purely inline-HTML & -CSS based table that will be shown if the script-based table does not load fast enough or at all. It doesn’t have to be fancy or look exactly the same, but should have the same content and be responsive, too.
I’ve implemented this myself for now, but I’m not a developer so I don’t know if I have all fallback cases covered. And making changes to that fallback table is really time-consuming.
Incomplete list of fallback cases that I can think of:
Interesting idea, thanks for sharing! Let’s see if other users would like to see this feature too.
By the way, if you’re currently experiencing issues with the widget display/loading, please send me a link to the page where it’s installed. I’ll be happy to check it for you
I don’t have any issues, thanks!
I just realized that the script always needs a short time for loading, and then I thought “what if it doesn’t load for some users?”. So I’ve added 3 fallback options, but in the squarespace code embed editor it’s difficult to maintain such long HTML, it’s just not made for that.
This attribute significantly improves the speed score of the page, where the widget is installed and loads the widget only when a visitor interacts with the page’s content or scrolls down to the place where the widget is installed.
If you’d like the widget to appear immediately, you can remove the data-elfsight-app-lazy attribute from the widget’s installation code.
Feel free to try it out and let me know if it helped
Sinan, wholeheartedly agree. I went to this forum to report the problem which is directly stemmed from the lack of fall back: namely, on Safari, when the ad blocker is on, none of Elfsight widgets are visible.
If the widget works via the Share Link but not on your website, try adjusting its placement within your site’s structure, as this may resolve the issue.
The ad blocker may mistake the widget for an ad.
Unfortunately, this is beyond our control, and we cannot resolve it on our end. We will reach out to the ad blocker providers to request an exception for our widgets, but it would be helpful if you could report the issue to them as well.