0
Welcome Guest! Login
0 items Join Now

ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down. Read our Farewell Blog Post for more details.

Load Module Last or Delayed

  • Load Module Last or Delayed

    Posted 13 years 8 months ago
    • I'm wondering if anyone has a solution to this little query I have.

      I'd like to either load a specific module "last" (after the rest of the page has loaded) or be able to add a "delay" to it so that the rest of the page elements load first and this one specific module loads last or after a certain amount of time.

      Any ideas?

      Chris
    • CMYKreative : Graphic Design , Web Design , Printing , Banner Ads , Branding and more.
    • Ben Simon's Avatar
    • Ben Simon
    • Elite Rocketeer
    • Posts: 4301
    • Thanks: 8
    • Full-time web developer

    Re: Load Module Last or Delayed

    Posted 13 years 7 months ago
    • I don't have a complete solution but here are a few ideas I was thinking about.

      php has a sleep function that can be called or it can call something else (a module perhaps).
      <?php sleep(NumberOfSecondsHere); ?>

      The display or visibility attribute could be set to none or hidden then revealed by a javascript event handler.

      There are several ways to delay and redirect that come to mind. Meta tag and javascript can do this for example, but redirecting probably won't help.
    • B e courteous to staff and members that volunteer their time helping you
      E ssential Tool - FireBug
      N ever assume I know what version you're talking about

      S earch the forum for a solution first
      I nclude a link to the problem
      M ark your resolved issues as [SOLVED]
      O nly PM moderators if they request it first
      N o...
  • Re: Load Module Last or Delayed

    Posted 13 years 7 months ago
  • Re: Load Module Last or Delayed

    Posted 13 years 7 months ago
    • Ben Simon's Avatar
    • Ben Simon
    • Elite Rocketeer
    • Posts: 4301
    • Thanks: 8
    • Full-time web developer

    Re: Load Module Last or Delayed

    Posted 13 years 7 months ago
    • That's a lot of errors... ha ha...

      Anyway, check apache logs to see what the error was. I'm assuming you are talking about "500 Internal Server Error".

      Did it output anything else besides the errors?

      How long did you set it for? There is a max_execution_time directive in php.ini.
    • B e courteous to staff and members that volunteer their time helping you
      E ssential Tool - FireBug
      N ever assume I know what version you're talking about

      S earch the forum for a solution first
      I nclude a link to the problem
      M ark your resolved issues as [SOLVED]
      O nly PM moderators if they request it first
      N o...
  • Re: Load Module Last or Delayed

    Posted 13 years 7 months ago

Time to create page: 0.061 seconds