Load JS/PHP  for shortcode

Have you ever tried to load the js or a particular file, only if particular short-code is available in the particular page/post ? If not, then you can do it now.

If the shortcode tag [short-code-tag] is available in the post content, the function is called, which loads the necessary php or js files for the particular page/post.
For extended information you can check Codex.

Hits: 4