When I started to code this blog, I tried to extract from my WordPress blog some simple features that I think are essential. Now I don't know how crucial a `Tag Cloud` is, but I assume even if it is not central, nothing is more emblematic of a blog than a tag cloud widget. In the words of Brendan Eich, tag clouds are around since "js purpose was to replace the HTML marque element."
The first thing I did was go to WordPress git source code to do a quick rewrite, but the tag cloud-generating funct...
View full article
If you want to load the post faster you can use JS to fetch your post, but on modern browsers probably preloading pages will be faster, the only drawback of preloading is that you'll consume storage for your visitors even if they don't visit the preloaded links, also with preloading links you will consume more bandwidth and resources on the server-side.
So if you want to stick with fetching with JS here is an example, but first, as a note, the example will not use the default REST API mostly be...
View full article
On many websites, you can have content embedded from other sites and one way that most external sites will offer will be to include a script that's hosted on their website.
But if all that script does is including some remote content there are better ways to get that, that will provide customizations and performance.
For example, the website Goodreads offers such an embed JS with a list of the latest books you read, and you must include the script where you want the content to be shown. But t...
View full article
There are a lot of commenting system plugins out there but most of them come with a cost, and sometimes just building a simple WordPress commenting system on top of the native commenting system can be enough.
The main features of this system will be:
- Comments will be only loaded if the user clicks a button
- Comments will be submitted and fetched by JS
- Comments will have paginations fetched by JS
- Comments will have some JS interactivity
- Comments will have the reply feature enabled
- The comment system...
View full article