The Stack Snippet below loads the first Stack Snippet in the Stack Exchange post defined by `site`, `postID`, and `isAnswer`. (Inspired by [this](https://meta.stackexchange.com/questions/257145/are-stack-snippets-a-good-enough-reason-to-increase-the-30k-post-limit#comment838813_257145) and [this](http://chat.stackexchange.com/transcript/message/21826346#21826346).)

It assumes there is only one Stack Snippet in the post and may load the wrong code if there is more than one.

- One possible application is to have this point to a generalized leaderboard Snippet. So any changes/fixes to the leaderboard Snippet are reflected in all the Snippets that point to it. [Optimizer has done this.](http://meta.codegolf.stackexchange.com/a/5314/26997)

- Another application is to point it to a [very long](http://meta.stackexchange.com/q/257145/266052) Snippet that wouldn't fit in the post otherwise.

##A golfed version with copyable raw markdown is available [below](http://meta.codegolf.stackexchange.com/a/5312/26997).

This ungolfed Snippet loads from [here](http://meta.codegolf.stackexchange.com/a/5311/26997).

<!-- begin snippet: js hide: false -->

<!-- language: lang-js -->

    site = 'meta.codegolf'
    postID = 5311
    isAnswer = true

    jQuery(function() {
    	var url = 'https://api.stackexchange.com/2.2/'
    	if (isAnswer)
    		url += 'answers/' + postID + '?order=asc&sort=creation&site=' + site + '&filter=!GeEyUcJFJeRCD'
    	else
    		url += 'questions/' + postID + '?order=asc&sort=creation&site=' + site + '&filter=!GeEyUcJFJO6t)'
    	jQuery.get(url, function(b) {
    			function d(s) { return jQuery('<textarea>').html(s).text() }
    			function r(l) { return new RegExp('<pre class="snippet-code-' + l + '\\b[^>]*><code>([\\s\\S]*?)</code></pre>') }
    			b = b.items[0].body
    			var js = r('js').exec(b), css = r('css').exec(b), html = r('html').exec(b)
    			if (css !== null)
    				jQuery('head').append(jQuery('<style>').text(d(css[1])))
    			if (html !== null)
    				jQuery('body').append(d(html[1]))
    			if (js !== null)
    				jQuery('body').append(jQuery('<script>').text(d(js[1])))
    		}
    	)
    })

<!-- language: lang-html -->

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>

<!-- end snippet -->

(I use `jQuery` instead of `$` to hopefully avoid [this issue](http://meta.codegolf.stackexchange.com/questions/5043/stack-snippets-messing-with-js).)