For those who like to implement both light and dark themes and want to do that in the most optimized way I have good news for you Google Recently implemented in Chrome > 93 the ability to get the user preference using server-side technologies.
Why is that important? Because just in case you didn't hear the term FART by now it stands for "Flash of inAccurate coloR Theme", the main issue is that if you don't know the user preference before sending a response to a request, you can optimally se...
View full article
Somewhat of a month back I applied for GitHub copilot access, out of curiosity and I am using it since I got access around 11 June 2021. To apply for access you basically submit an application form, and after it's reviewed you get an invite to a private GitHub repo, once you have access to that repo you can use copilot by using the VS extension and authenticate with the Github account that has access to that repo, be sure to change fast the issues watching level because it's set to all and that...
View full article
After a dreaded existence, AMP probably will fade away after June 2021, if I were to predict I'll say it will stick around for a couple of years but its usage will decrease dramatically, and that because Google will not treat AMP preferentially anymore. That's mostly because the new June update of the Google search engine will take into account the performance of every website and since AMP was made in order to create lightweight websites.
I never really hated AMP, though from what I've seen on...
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