Run Javascript only if loaded

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • KG

    Run Javascript only if loaded

    I have an external javascript loaded in the HEAD of a page. However, that
    script is sometimes offline (and when it's offline, the whole page doesn't
    load till that javascript is loaded).

    It is important that the file runs sooner on the page, but if it's not
    available, can that be ignored?


  • Thomas 'PointedEars' Lahn

    #2
    Re: Run Javascript only if loaded

    KG <fake_dont_send @anything_.comw rote:
    [...]
    [x] done


    PointedEars

    Comment

    Working...