How to check for dependencies for a specific page and enqueue them
I am creating a one page site where the content of the sections (separate pages) above and under the actual page section are lazy loaded via AJAX. Say in one of the pages a shortcode for a gallery plugin is used and the plugin only enqueues its dependencies on pages where the shortcode is used:
How can I check which dependencies would be enqueued if a specific page is loaded?
By 'page' I do not only mean actual pages or custom post types, but all sites WordPress generates, e.g. archive pages or the home page.
Topic wp-dependencies ajax Wordpress
Category Web