Who does not like blazing fast websites, that take no time to load and always serve great content. There are websites that have great design and content but tend to be slow due to many factors, for example loading images and other assets that are not optimized for the web.
WordPress powered sites are getting a recommendation by AdSense to support AMP(Accelerated Mobile Pages), you can see this recommendation in the Google AdSense Dashboard.
I find a lot of blogs use CDNs these days this made me wonder if they seriously need a CDN or is it just because they can get one. What felt weird was how personal blogs used CDN, where the content was mostly text. I believed strongly that they used CDNs because the website was powered by a heavy CMS or was served by a slow server, because of my previous experience of hosting on a slow shared hosting service and use of WordPress, thank you iPage for that experience. Now I use Digital Ocean, which offers VPS(Virtual Private Servers) called as droplet and gives you the option to choose from a wide verity of locations, so you can have a server close to you or your visitor.
It made sense to use a CDN with WordPress because of how there are too many clients sided files being loaded and it turns into an override from to infinity and beyond thanks to plugins and legacy code writing people.
What I found instead was even static sites used CDNs which was quite of a shock, because none of those sites were image heavy, they had quite lightweight client side scripts and stylesheet.
To such sites all a CDN would do would offer down time when the CDN service hit down time or had an issue with a specific instance that handled these clients files.
I wanted to research on why this was a trend and the results are quite interesting.
It is not a surprise that a lot of sites especially the new ones what to be more competitive and be part of the Alexa master race.
The main goal of these websites is to reach as wide of an audience as they can and will do anything to do so. The authors, publishers, and owners want to do any optimization in the client or server side without understanding if it is needed just because a click bait article describe to them using a CDN makes your site blazing fast while is true, it does not make the content or subject great.
In my opinion, a blog succeed when it has great content that is a good read and grows when such reads are served constantly. I think most people learn this only after a bit of an experience and will be misled and given wrong information till clickbait is the trend to get views.
I can understand a publisher’s mind they want to be out there and seen, noticed and seen some sites even personal blogs that turned completely clickbait just to gain views and immediate popularity, while other who had blogs gave up just because it got harder when it came to maintaining one and decided to shut it down when it was difficult. Yes, this is a sad reality, people give up too fast and want everything instantly.
When to use one
You might be already familiar with the concept to a CDN, if yes, then skip this if not then continue with the read.
A CDN has several servers or you can say instances in different locations and replicate the data from the provider(client) and replicate it onto those servers/instances, these serve then serve the content from the closest server to the visitor reducing the amount of latency and data travel on a given network. I have written a much [detailed post on this topic]
Without a CDN
The server is in the US, the visitor is in Singapore, the visitor is served directly from the US server.
With a CDN
The server is in the US, the visitor is in Singapore, the visitor is served from the closest server which may be in Singapore or in some part of Asia, this means it is served by a server inside of Asia.
These days CDN services offer servers in many countries, letting the visitor be served by a server inside the country, for example, there can be servers in India that in both Mumbai and Delhi, so visitors of Mumbai will be served a server in Mumbai.
Do you need it?
If you have large amounts of posts or data being served and is large files or image heavy then you must go with a CDN otherwise you don’t need one if your server can handle decent traffic and the page load time is not very long
It turned out to be a bot that was attacking my Google Analytics user id and created fake visits to pages that do not exist on my site and get referred from sites that are not related to my site and subject matter I have written about.
In this age and time, we are surrounded by technology that was once a man’s dream and only part of Sci-Fi movies, now being part of our daily lives. Today our smartphone has a higher rate of processing power than all the computational power NASA had when man landed on the moon. Today we have this humongous amount of power at our fingertips and has given us some of the greatest advantages and has helped humanity to a very large extent.
Looking at it the other way is also interesting as it has done the same in the opposite. Today we have devices that can multitask and do a lot of things, handle messages while taking a high resolution photo, download documents while watching a video, stream a live event or complete desktop. This has made us aware of the opinions of our near and far relatives, family, and friends that did not matter to us and we are seeing content that does not matter and have an information overload.
It has also resulted in a large number of people feeling that they have done work at the present and made them feel that they have not achieved much by the end of the day. This has resulted due to the access to information that one wants to learn about, other than when it would not be helping to accomplish the specific task he or she is doing at present.
An average person checks his smartphone for updates every once in twenty minutes and not being mentally present at that moment.
This also makes us less dedicated to our work and eats away our time.
Humans were never meant to multi-task, they are only good at doing that one thing at a time and that one thing was done very well.
Every day we decided that we should accomplish so much and fail. Due to this we go miles away from our goal and feel the time was not spent well.
We are not always aware that this is happening to us, you might be working on a document in your editor app and suddenly remember a video your friend was talking about the other day and instantly decided to watch that video, instead of finishing the document, just because the mind subconsciously finds tasks that have not been completed easier than the ones you are working on.
Later you realise that editing the document would take less than thirty minutes, but you ended up working on it for more than two hours, just because you sat there and decided let’s watch all the videos youtube recommended because they are only five minutes long, instead watched a whole playlist when you were supposed to go back and edit the document.
A study has shown that switching between multiple tasks instead of completing one, makes you feel mentally rewarded because your mind wants to work on easier takes and is fooled to believe, that it is easier to do other tasks than doing the current task, resulting in one checking his smartphone over and over again or opening the empty fridge doors to see if the tooth fairy has left some chocolates.
The only way one could fix this problem is by scheduling one’s workflow instead of scheduling one’s work itself. This will make us work on what we should be doing at present instead of what needs to be done. Resulting in doing what needs to be done at the moment and also by the end of the day you feel you have accomplished more, completed tasks, thereby browsing your smartphone or any other device more relaxed, because your mind is not prompting you into thoughts of what you should be doing and how much is left to do.
Image source: code.facebook.com
Facebook recently open sourced its Keyframe library that powers it’s reaction emoji, that you can find to the left of the like button.
Keyframe lets Adobe After Effects shape into animation data that can run on iOS and Android device.
This is more of an overview if you want to view further details visit code.facebook.com
You can view or contribute to the project by visiting it’s GitHub
Chrome is one of the most common web browsers used by a large audience. It is easy to use but at the same time a resource hog. The web standards and bleeding edge supports makes Chrome a developer friendly browser at the same time a resource hog. While a simple fix is disabling extensions that are not being used the other solution is to get The Great Suspender which will suspend the tabs that have not been viewed or switched to for a certain amount of time that can be set by the user
The extension offers some easy to setup customization that can help tune the plugin to your taste it has reduced my Chrome usage from 4.85 GB to 1.65 GB which is great because I have many tabs open but focus for a very long time on one tab while watching Youtube videos or reading articles. Thank you for reading.