Ordering of pop up load

Rachel Rennie asked on August 17, 2015 17:16

We have a popup/overlay which asks the user to confirm where they are coming from when they first hit the site. We are using 8.2.32 precompilation for site speed.

We are noticing that the overlay/popup sometimes doesn't load on the home page and you can sometimes click around for a few seconds before it loads.

Is there a way to dictate the load order of the components? and will this be affected by precompilation of the site?

thanks

Recent Answers


Brenden Kehren answered on August 17, 2015 17:27

If you're using portal mode, make sure your widget/webpart is placed at the top of the page. For instance, when I create a master page I have a JavaScript webpart at the top of the template and at the bottom of the template. The one at the top loads JS inline at the top of the page and the bottom one loads JS inline at the bottom of the page.

Another example is Google Analytics. GA recommends placing their < script > tag as the last item before the closing < head > tag. To accomplish this I place the a HEAD HTML webpart as the very last webpart on the master page. This way it will still load in the < head > tag but all other items will ALWAYS load first and make this one last.

2 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.