Maintainable Social Script Integration
Post from December 19, 2014 (↻ December 19, 2019), filed under Web Development.
This and many other posts are also available as a pretty, well-behaved e-book: On Web Development.
(Or go straight to GitHub.)
That’s it *. The reason for this brevity is maintainability. Instead of contaminating tens or hundreds or thousands of files, template or not, WETting them with different scripts and their configuration code and such, we want to just add what is structurally needed. One container. To be populated and managed through one script.
Lacking alternatives, I’ve built such a script and now added it to GitHub. “Social Widget Wrapper” I’ve called it. (This can be renamed later.) It’s actually three scripts at the moment, for I’ve worked on three different approaches. (This should be consolidated.) And as it’s getting a bit more complicated from here, I suggest you check out the project page and, if you like, help me make all of it easier and better. I’m a terrible scripter †.
Oh. In other words, I’ve open-sourced a functioning but scrappy script, or three of those, that shield markup from social widgets or their scripts or so, and now throw it all at everyone around.
† …which may affect the Google Photo Fetcher script, too.
I’m Jens Oliver Meiert, and I’m a web developer and author. I love trying things, including in the fields of philosophy, art, and adventure. Here on meiert.com I share some of my views and experiences.
If you have any suggestions or questions about what I write, leave a comment or a message.
Have a look at the most popular posts, possibly including:
Perhaps my most relevant book: CSS Optimization Basics (2018). Writing CSS is a craft. As craftspeople we strive to write high quality CSS. In CSS Optimization Basics I lay out some of the most important aspects of such CSS. (Also available in a bundle with Upgrade Your HTML.)
Looking for a way to comment? Comments have been disabled, unfortunately.