Jump to:

23454 Posts in 18904 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » Javascript Load and Performance

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 487 Views
  • bunheng
    Avatar
    Community Member
    78 Posts

    Javascript Load and Performance Link to this post

    Good Morning,

    I am using combine file to combine all my Javascript file, it was working fine if I write requirement javascript file to header instead of body, the true thing is I want to write all Javascript and combined javascript to body. I would like to know if there is away to load Javascript before page loaded.

    Thanks
    Bunheng

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: Javascript Load and Performance Link to this post

    Requirements would automatically write any JS to the bottom of your body unless you have a <script> tag in your header or you turn off Requirements::set_write_to_body(). Have you got any <script> tags in your header.

    487 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.