Is it right to consider the answer link-only and flag it in the case when:
The answer depends (for example) on external js library and it points to it's webpage and documentation. I understand that we need to include code because the website can simply become obsolete (inaccessible), but in that scenario the answer will become obsolete either as it simply depends on external library and if library is inaccessible (obsolete) the code example is obsolete either.