Quantcast
Viewing all articles
Browse latest Browse all 13545

digitalsky on "How can I load certain JavaScripts only on blog pages?"

I'm not sure if I need to do that since one of them is just an inline JavaScript snippet that looks like this...

<script type="text/javascript">
			(function(d){
				var f = d.getElementsByTagName('SCRIPT')[0], p = d.createElement('SCRIPT');
				p.type = 'text/javascript';
				p.async = true;
				p.src = '//assets.pinterest.com/js/pinit.js';
				f.parentNode.insertBefore(p, f);
			}(document));
		</script>

And the other looks like this...

<script src="//platform.linkedin.com/in.js" type="text/javascript">lang: en_US</script>

Does it still need to be enqueued if it's not actually a JavaScript file?


Viewing all articles
Browse latest Browse all 13545

Trending Articles