TNEW V7 JS loading inconsistent

Working on the templating of our TNEW V7 site and we've encountered a pretty specific problem with script loading orders. On our event listing page, we load a script file that triggers the scripts on $(window).load(function(). The script file loads every time and the console log always indicates that the script fires. However, the script impacts the loaded performance content, and sometimes the script fires after that content is loaded which is correct, but sometimes the script fires before that content loads. It's about 50/50 when it works.

The $(window).load(function() trigger is the only one we could get to work at all, but I guess this inconsistency tells me that the performance information can load after the window. Has anybody experienced and fixed this? Is there a JS trigger that could work?

Parents Reply
  • That's a great question.  I don't know of there's an event handler or something that you could tie into.

    I had this issue with v6 when overriding urls in performance content so that they would point to our development content server when being displayed by our QA TNEW site.  Since it was content in the DB, I just ran a URL updater on the content table in the database during Live->Test copies.  Obviously, I can't do that with v7.  I think I have an enhancement request in to be able to do arbitrary URL mangling for TNEW config in QA...

Children
No Data