Use Dropbox as a CDN for your WordPress Blog

Published in: Dropbox - WordPress

For optimal site performance, it is recommended that you use a CDN (Content Delivery Network) to host your website’s static content – like images, CSS and JavaScript files – since it effectively reduces the physical distance between the user’s browser and your content.

A CDN is a collection of web servers distributed across multiple locations to deliver content more efficiently to users. The server selected for delivering content to a specific user is the one with the fewest network hops. [Yahoo]

Amazon S3 is among the most cost-effective CDN for hosting WordPress files but if you are not on S3 yet, you may well consider using the Dropbox service as a CDN to serve the static files of your WordPress blog.

How? There’s a new WordPress plugin in town that can help you effortlessly deploy all the static files associated with your WordPress theme to Dropbox.

It works something like this. You create a sub-folder in your Dropbox Public folder and replicate your WordPress theme folder structure here. Next grab the URL of this public folder, pass it to the Dropbox CDN plugin and it takes care* of everything else.

dropbox cdn

Will this really help improve performance? Based on the suggestion of David Bradley, I conducted a quick test to compare the loading speed from Amazon S3, Dropbox, Google CDN and my existing host which is Dreamhost.

An uncompressed JS file was served from all the four servers and the load time of Dropbox turned out to be among the lowest (see the blue bar) partly because Dropbox automatically served the file with gzip compression.

Related resources:

PS:The Dropbox CDN plugin will not work with WordPress themes where the file paths are hard-coded into the code. Check your header.php file to ensure that you use standard functions like bloginfo(‘stylesheet_directory’), etc. to echo the static file names.

📮  Subscribe to our Email Newsletter for Google tips and tutorials!
Published in: Dropbox - WordPress

Looking for something? Find here!

Meet the Author

Web Geek, Google Developer Expert
Amit Agarwal

Amit Agarwal is a Google Developer Expert in Google Workspace and Google Apps Script. He holds an engineering degree in Computer Science (I.I.T.) and is the first professional blogger in India. He is the developer of Mail Merge for Gmail and Document Studio. Read more on Lifehacker and YourStory

Get in touch

Google Add-ons

Do more with your Gmail and GSuite account

We build bespoke solutions that use the capabilities and the features of Google Workspace for automating business processes and driving work productivity.

  1. Mail Merge with Attachments
    Send personalized email to your Google Contact with a Google Sheet and Gmail
  2. Save Emails and Attachments
    Download email messages and file attachments from Gmail to your Google Drive
  3. Google Forms Email Notifications
    Send email notifications to multiple people when a new Google Form is submitted
  4. Document Studio
    Create beautiful pixel perfect documents merging data from Google Sheets and Google Forms
  5. Creator Studio for Google Slides
    Turn your Google Slides presentations into animated GIFs and videos for uploading to YouTube