jQuery inconsistency loads

I wrote a login script to test a site I am working on, but during the automation the home page does not load the jQuery consistently, when I login into the site manually the jQuery loads all the time. I added some delays to my automation script as well as a “waitForJQueryLoad.”
Here is the check:




WebUI.verifyTextPresent(‘Activity Label’, false)

I am testing in Chrome and I would say the script fails due to not loading the jQuery about half the time. Please help!!!