Differences in clientside tracking methods

Hi

I got a question about including Piwik tracking on clientside.

On the Piwik page I found this way to include:

What would be the difference to include piwik.js directly and use the following code: