What is the way to replace HTML using jquery without loading original HTML?

Discussion in 'HTML & Website Design' started by computerzworld, Jun 20, 2013.

  1. #1
    I am loading HTML content from the third party server using JSONP & using jQuery.html("html") function to replace full HTML. I have used this code in head tag but when I am trying to access that site, it loads the default HTML first & then replace the HTML using jQuery. Is there any way to make the jQuery loaded HTML to be displayed first? Any help would be appreciated. Thanks.
     
    computerzworld, Jun 20, 2013 IP
  2. ActiveFrost

    ActiveFrost Notable Member

    Messages:
    2,072
    Likes Received:
    63
    Best Answers:
    3
    Trophy Points:
    245
    #2
    Server -> Browser -> any user-level modifications (includes jQuery)

    In other words - you can't do that.
     
    ActiveFrost, Jun 20, 2013 IP