Comment by jawns

11 days ago

These are not static scripts. Their content changes frequently. The customer is using them to inject dynamic content into their own sites. What you are describing would not work for this use case.

Loading dynamically changing code from a third party server is a recipe for disaster, which is exactly what was cooked here.

The code should be static and the configuration (data-only) the only thing that changes frequently, but that is less flexible and harder to implement.

  • It's also what they want. They want to change the code frequently, that's the whole point of outsourcing it. Telling people "just don't do the thing you want to do" is not an effective recipe for change.