CommonSpot ADF’s renderScriptOnce method

A problem common across many CMS platforms is managing the loading of third-party JavaScripts, such as JWPlayer. You could make them available for any page in your website by including them in a global header or footer, but that approach is lazy and wastes bandwidth. A better approach is to include third-party JavaScripts on only the pages where they will be used.

For example, pages with embedded videos get the JWPlayer linking, but the pages lacking videos do not. This is fairly straightforward– just include the third-party JavaScript in the output of the plugin, render handler, etc. with which it is associated (i.e. your video element/plugin links to the JWPlayer script).

But what if a page has multiple instances of that video element/plugin?

Continue reading CommonSpot ADF’s renderScriptOnce method

Because Introvert

Guess who isn’t going to Awesome Con?

That’s right. This guy. :-/

My left brain can rationalize this as “not spending money when you’ve got thousands of dollars in medical bills and home improvement projects pending.” And that’s both truthful and practical.

But the silly truth is, the idea of attending a convention now makes me uncomfortable. Large crowd, a sea of strangers, many dressed up as characters that I certainly won’t recognize. (I’m woefully out of touch with comics/graphic novels these days, and so far behind on my tv show/movies I still haven’t seen Avengers: Age of Ultron yet.)  I’m not worried I’ll be harassed for not being a cosplayer or a fanboy– I’m sure the Awesome Con crowd are nice folks.

It’s just the idea of navigating among and interacting with all those people is exhausting and nerve-fraying. It didn’t used to be this way.

Continue reading Because Introvert