My scripts take a long time to load and widgets do nothing

I am using Scriptable 1.7.19 on an iPhone 11 Pro Max running iOS 17.6.1.
I am also using iCloud to store my scripts.

I recently started having trouble with my scripts taking several /minutes/ to load into the Scriptable UI. The scripts are visible in the iOS Files app: iCloud > Scriptable

This has now affected my widgets, as they don’t work, nothing is displayed in the widget. If I tap on a widget that is set to open the script, I get a blank script.

If I wait for the scripts to load, and select a script, and run it, the code is there, and displays the widget preview as it should.

So, what’s going on and how do I fix? I tried:

  • restarting my phone
  • force closing Scriptable
  • force closing the Files app
  • force closing both Scriptable and the Files app
  • reinstalling Scriptable

Any suggestions?

Sice you can run iOS18 on your device I would strongly recommend updating to that. You can then set your script folder to be kept downloaded which may also things. Content may look available locally, but that hasn’t always been true.

If that does not resolve things, maybe backup your scripts and move them to an external folder. Then slowly add them back to th Scriptable iCloud folder and check your performance.

I’ve had issues like this in the past due to script volume but that improved quite a few releases back for me. But it could still be a volume thing or a particular script (e.g. a name issue).

By ‘slowly’ adding scripts back, you can hopefully monitor for the responsiveness and see if you can focus in on the threshold or triggering script.

Hope that helps.

1 Like

That did the trick!
I moved the scripts out of the iCloud > Scriptables folder, and then added a few back in and it worked!
So, it’s definitely a limit on script count or a memory error.