There isn’t any reason to check, really. When you display the block content just enqueue the script there in the footer. You can event “enqueue” a script multiple times and only the first one will count. As an example, I am currently working on a site where I’m using slick slider. I have set up multiple flexible content layouts that use it. Inside my code that displays the flex layout I enqueue the scripts I need.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users