[CLOSED] [1.0] Repeated JavaScript resources requests problem

  1. #1

    [CLOSED] [1.0] Repeated JavaScript resources requests problem

    hi,

    note: actually, this is question is not problem in Ext.NET but part of the project that i work on + ext.net putting the java-script resources in one place correctly. so i need to know how to do that!

    the Question: in one of my X-Threads:
    http://forums.ext.net/showthread.php...al-js-function

    i show code on using [Loading-rendering-dynamic-panels], the exact post is:
    http://forums.ext.net/showthread.php...ll=1#post36077

    in the code of /*demo3.aspx*/ i made small change by adding [jquery-1.4.2.js] library:
    /*demo3.aspx*/
     
    <%@ Page Language="C#" %>
     
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
    <script src="Scripts/jquery-1.4.2.js" type="text/javascript"></script>
    
        <title>Ext.NET Example</title>
    </head>
    <body>
        <ext:ResourceManager ID="ResourceManager1" runat="server" />
        Hi, I am Child
    </body>
    </html>
    so now if you run the code, and use monitoring tool/proxy you'll see that the [jquery-1.4.2.js] requested with every demo3.aspx request and this make the total response [of each demo3.aspx request] big size and slow. :( so how i can make the script file requested only once!
    Last edited by geoffrey.mcgill; Jan 17, 2011 at 3:10 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Do you load demo3.aspx inside iframe? If yes then the page must download required resources even if another instance of the page already downloaded it
  3. #3
    yes, its inside iframe! but since it will always be accessed as part of a parent page, can i do something to prevent downloading the same resources like Jquery library? i mean all pages use the EXTJS resources no matter how many iframes used and still downloaded once! SO HOW did you managed to do that!
  4. #4
    Hi,

    Ext.Net resources are cached by browser therefore after the first download the browser get those resources from own cache (bur resources still download, only from local cache)

    If demo3.aspx pages uses jquery library then each instance of demo3 inside iframe must download that library because resources are not shared between iframes and parent page
  5. #5
    thanks dude!

    so i guess, i have to change my design in order to prevent that, right!

    please if anybody got an idea, share it!

    bye,
  6. #6

    Idea!

    what about changing all Jquery stuff to ExtJs!

    can you help me with that, i don't have much, but does extjs have alternative for all jquery functions:
    i use this one sometimes:
    <DocumentReady Handler="$(window.frameElement).css('height', 255);" />
    how i can do that in extJs
  7. #7
    Hi,

    Ext.get(window.frameElement).setStyle("height", "255");

Similar Threads

  1. [CLOSED] What repeated div with store in html
    By stoque in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 01, 2011, 10:48 PM
  2. Replies: 5
    Last Post: Jul 25, 2011, 6:14 PM
  3. 404 Not Found for a few resources requests
    By orozcoc in forum 1.x Help
    Replies: 4
    Last Post: Feb 09, 2011, 8:25 PM
  4. Replies: 7
    Last Post: Nov 15, 2010, 10:51 AM
  5. [CLOSED] Repeated postbacks
    By harafeh in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Apr 09, 2009, 1:46 PM

Posting Permissions