Run script AFTER jquery is loaded

I need to run a piece of JS that is specific to just one page.

  • I can't add it in a JS file since it is specific to one page and BSS apparently has no option to load JS per page. It always loads all JS file in all pages (which itself is a serious limitation in my opinion).

  • I can't add it using Custom Code because it uses jQuery, which is loaded AFTER the entire page content by BSS, thus I see $ is not defined error when my script runs.

What is my way out?

You could use a conditional if statement.

Hmm... Someone on StackOverflow told me to do roughly the same. I do wonder how many times people actually want to include ALL of their scripts on ALL of their pages. Shouldn't their be a way to link JS files to specific pages in BSS?