Host images on Dropbox and reduce your blog’s loading time
Some people do the mistake of uploading images to their WordPress blog by uploading it to their WP images directory.
This not only increases the website’s loading time, but also adds up to your hosting space, eventually.
Fortunately, there is a neat way to mitigate this issue. We do this by using Dropbox’s free account feature as our CDN (Content Delivery Network)
If you don’t have Dropbox account yet, it’s now time to signup.
Login to dropbox and upload any image to your account that you want to add to the blog post.
After uploading, click on the image icon to see a button called ‘SHARE‘.
Clicking on ‘SHARE‘ button will give the link you want to paste to your blog HTML.
Important Note: change the default URL from this:
This setting is necessary to make sure the images shows up correctly because Dropbox has set the image preview as default with a black background.
To get only the image to display after we host images on Dropbox, we will now replace ‘www.dropbox.com’ with ‘dl.dropboxusercontent.com’ in the URL.
Update: both ‘dl.dropboxusercontent.com’ and ‘dl.dropbox.com’ works.
(Remember to delete ‘www’)