I setup splashify to load in a colorbox and display a webform, everything works as it should, but the load time is very slow (4+ seconds for colorbox after initial page load).
I am on a VPS with dedicated resources. Any suggestions for modifying drupal to gain speed, again all i am trying to display is a webform.
thank you

Comments

remkovdz’s picture

+1

chrisroane’s picture

Does it load just as slowly if you do not load a webform? Does the site load slowly when Splashify is disabled?

tevk’s picture

Currently splashify_init.js uses:
$(window).load(function(){
to kick off the popup/redirect, this is slow because it waits for everything to finish loading before it does the popup.

I tried switching that to:
$(document).ready(function(){
which makes it much faster. Downsides seem to be the colorbox rounded corners sprite might not be done loading, and redirect doesn't seem to work quite right. But speed for a popup/redirect seems like core functionality, this should definitely be worked on.

-Tev

chrisroane’s picture

Category: support » task

I'll mark this as needing more testing and tweaking to see what I can do.

chrisroane’s picture

I agree that this doesn't work right. However, when I try to use $(document).ready()....the colorbox doesn't load the content and the system goes into a JS loop.

I'm not super strong with JS, but I'll try to refactor this code over the next few weeks and see if I can approach the JS of this differently.

chrisroane’s picture

Status: Active » Closed (duplicate)

Closing this out, because I created a new task that covers this. http://drupal.org/node/1826628