locked
Using ms-deferred for JavaScript in a page referenced by an iframe RRS feed

  • Question

  • I understand that pages other than the default page should use the ms-deferred/javascript type for loading scripts.  In my application, I have a second page that is an included as an iframe to the default page.  Should this second page use ms-deferred/javascript ?  The app seems to be working with just text/javascript but I am wondering if this is a lucky fluke?
    Saturday, October 29, 2011 12:04 AM

Answers

  • Hi JR,

    You should use ms-deferred/javascript if you are using HTML fragments in your project.  If this is a standalone page (as it is in your case) the deferred key word is ignored.

    -Jeff


    Jeff Sanders (MSFT)
    Monday, October 31, 2011 12:08 PM
    Moderator