Replacing [removed]()s in an xhtml+xml page

后端 未结 3 1203
误落风尘
误落风尘 2020-12-30 05:45

I work for a company that writes software which client sites embed with < script language=\"JavaScript\" src=..... etc. etc. We depend quite a bit on document.write to wr

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-30 06:23

    We've been using Jquery and set timeouts to rewrite code supplied to us by similar organisations to yours. Here's an example from Search Ignite:

    
    

    The timeout has the added benefit of making our page responsive to the user before the the external code has been loaded by the users browser, very useful if the external supplier's servers ever go down. Yes we loose some tracking stats but the user experience is not compromised.

    Obviously you won't be able to rely on JQuery but you get the general idea.

提交回复
热议问题