Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. What will be done if more than one page requires a file of JavaScript code?

  2. A.

     Downloads that many times

    B.

     Retrives from the browser cache

    C.

     Must be re executed

    D.

     None of the mentioned

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    If a file of JavaScript code is shared by more than one page, it only needs to be downloaded once, by the first page that uses it—subsequent pages can retrieve it from the browser cache.


Be The First To Comment