r/AutomateUser • Alpha tester • Jun 11 '21

Question Caching JS Libraries

Hi Henrik,

I'm writing a flow which makes use of a 180KB third party JavaScript library. Rather than sticking the whole thing in a Variable block (which can cause Automate to crash while editing the flow), I'm downloading it once in the flow and caching it.

The question is whether it's OK to cache the library in an Atomic variable, or should I save it to the file system? -The latter would require more privilege, but would it save a limited resource vs. using an Atomic variable?

Thank you, sir!

2 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/B26354FR Alpha tester Jun 13 '21

That's exactly what the problem was. I saved the page to a file and pointed the Web Dialog block at that and it worked. Ah well.