[CLOSED] Scripts at bottom of page

  1. #1

    [CLOSED] Scripts at bottom of page

    Is there any way to get the ext scripts to load at the bottom of the page? This increases performance. Is there any reason why they are loaded at the top?
    Last edited by geoffrey.mcgill; Sep 08, 2011 at 6:08 PM. Reason: [CLOSED]
  2. #2
    I don't think that it increases performance because Ext.Net builds UI in DOM ready UI. So, it doesn't matter where Ext.Net resources are located (DOM ready event will be triggered after Ext.Net resources are loaded only)

    In any way, you can use ResourcePlaceHolder control to define exact rendering location of Ext.Net resources
  3. #3
    Loading the script files at the bottom of an Ext.NET page is not likely to increase performance. The page will not render until the scripts are loaded, so loading in the <head> or just before the </body> will make no difference.

    That said, you can control the placement of the resource files (.js, .css) by adding an <ext:ResourcePlaceHolder> control anywhere in your page. The ResourceManager will then render the scripts to the exact location of the ResourcePlaceHolder.

    Hope this helps.
    Geoffrey McGill
    Founder

Similar Threads

  1. [CLOSED] Latest scripts in SVN?
    By rthiney in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 13, 2011, 7:24 PM
  2. Replies: 13
    Last Post: May 03, 2010, 4:17 AM
  3. [CLOSED] [1.0] MVC and Scripts
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 14
    Last Post: Feb 24, 2010, 6:13 PM
  4. Grid at top half and form in bottom half of page?
    By jaydwire2 in forum 1.x Help
    Replies: 3
    Last Post: Dec 03, 2009, 5:18 PM
  5. [CLOSED] AutoLoad Scripts
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: May 19, 2009, 11:19 AM

Posting Permissions