Closed (duplicate)
Project:
Splashify
Version:
7.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
23 Apr 2012 at 19:25 UTC
Updated:
30 Oct 2012 at 03:04 UTC
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
Comment #1
remkovdz commented+1
Comment #2
chrisroane commentedDoes it load just as slowly if you do not load a webform? Does the site load slowly when Splashify is disabled?
Comment #3
tevk commentedCurrently 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
Comment #4
chrisroane commentedI'll mark this as needing more testing and tweaking to see what I can do.
Comment #5
chrisroane commentedI 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.
Comment #6
chrisroane commentedClosing this out, because I created a new task that covers this. http://drupal.org/node/1826628