• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » Speed up WordPress With Enqueue Scripts and Rackspace Cloud Files

By Abhishek Ghosh March 5, 2014 10:30 am Updated on March 5, 2014

Speed up WordPress With Enqueue Scripts and Rackspace Cloud Files

Advertisement

Speed up WordPress and Get Full Manual Control of CSS, Images, Javascripts With Enqueue Scripts and Rackspace Cloud Files. Here is How We Can Do it. Well, most of us uses W3 Total Cache. Unfortunately, W3 Total Cache does not have the function to unhook the minified Javascripts, CSS files. Additionally, some Javascripts, CSS needs to be manually minified or should not be minified. W3 Total Cache works good for smaller websites but for bigger blogs like our website with 5K+ Posts, it is mandatory to manually control the delivery via Rackspace Cloud Files CDN. It is impossible to check each and every posts. W3 Total Cache is nothing but a modernized version of an old Cache Plugin. WordPress had the Cache function by default before, for various issues, that has been discontinued. Essence is that, definitely we will use W3 Total Cache, but we must Optimize and Speed up WordPress and Get Full Manual Control of CSS, Images, Javascripts With Enqueue Scripts and Rackspace Cloud Files CDN based on our high end back end.

 

Speed up WordPress and Get Full Manual Control of CSS, Images, Javascripts : For Whom it is Written?

 

This guide to Speed up WordPress and Get Full Manual Control of CSS, Images, Javascripts With Enqueue Scripts and Rackspace Cloud Files is written for Akamai or Rackspace Cloud Files or any OpenStack Swift user with Rackspace Cloud Sites or Rckspace Performance Server.

It is mandatory to understand, our target is to optimize the server backend first, use the advanced features of WordPress.

Advertisement

---

 

Speed up WordPress and Get Full Manual Control of CSS, Images, Javascripts : What Things to Know and Do

 

Google PageSpeed Insight throws an ugly message – Eliminate Render-blocking Javascript and CSS WordPress. The linked article is a guide, an excellent guide to unhook the specific Javascripts and make it loading from Rackspace Cloud Files CDN/Akamai CDN and in footer. How in footer ? Here is the reference :

Vim
1
http://codex.wordpress.org/Function_Reference/wp_enqueue_script

 

So the function says :

Vim
1
wp_enqueue_script( $handle, $src, $deps, $ver, $in_footer);

Look the in_footer part. An example :

Vim
1
2
3
4
5
6
7
8
9
add_action( 'wp_enqueue_scripts', 'script_managment', 99);
function my_script_managment() {
  wp_deregister_script( 'jquery' );
  wp_deregister_script( 'jquery-ui' );
  wp_register_script( 'jquery', 'http://aaaaaaaaa.r37.cf2.rackcdn.com/jquery.min.js' );
  wp_register_script( 'jquery-ui', 'http://aaaaaaaaa.r37.cf2.rackcdn.com/jquery-ui.min.js' );
  wp_enqueue_script( 'jquery', 'http://aaaaaaaaa.r37.cf2.rackcdn.com/jquery.min.js', array( 'jquery' ), '4.0', true );
  wp_enqueue_script( 'jquery-ui', 'http://aaaaaaaaa.r37.cf2.rackcdn.com/jquery-ui.min.js', array( 'jquery' ), '1.8.16', true );
}

If not mentioned, it is set to false. You need to force to yes. Sometimes, this way fails. It is not that the method is wrong, it can happen, something is forcing to call a Javascript for proper function. In these cases, first de-register the named file :

Vim
1
2
3
4
function my_script_managment() {
  wp_deregister_script( 'jquery' );
  wp_deregister_script( 'jquery-ui' );
}

Keep in mind, this is might not be the way to eliminate javascripts included in wp-includes due to conflict in name :

Vim
1
https://core.trac.wordpress.org/browser/tags/3.8.1/src/wp-includes/script-loader.php#L0

CSS, should not be loaded in footer. It will look bad to load the website without CSS first. Rest remains the optimizing CSS and Icon-Fonts. We wrote about the Icon-Font before.

Speed up WordPress With Enqueue Scripts and Rackspace Cloud Files

In CSS file, if the reference is :

Vim
1
2
3
4
.error404 .post {
background-image: url(images/icon-404.png);
background-size: 256px 256px;
}

It simply means, by default, the CSS will call the image from the CDN container’s sub-folder named image. Either create a folder in that container by using CyberDuck and upload the images or change the CSS :

Vim
1
2
3
4
.error404 .post {
background-image: url("http://anothercontainer.rackcdn.com/icon-404.png");
background-size: 256px 256px;
}

In the later method, page loading will technically more efficient as the container is different.

This Article Has Been Shared 900 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Speed up WordPress With Enqueue Scripts and Rackspace Cloud Files

  • WordPress 3.6 on Rackspace Cloud Sites and W3 Total Cache 0.9.3 Plugin

    WordPress 3.6 on Rackspace Cloud Sites and W3 Total Cache 0.9.3 Plugin with perfect configuration demands quite good idea on many aspects,here are some for you.

  • Business Intelligence Software in Healthcare

    Increased desire for more and better information by different industries resulted in increased sales of BI software solutions including Healthcare.

  • Photo Gallery Hosting : Free or Nearly Free Practical Options

    Photo gallery hosting can be Free or nearly Free with various Cloud based and Free Softwares. It is possible to run a website that has your photos with no cost.

  • Cloud Computing and Actions Against Hackers

    Cloud Computing IT executives at least theoretically now know about “distributed denial of service” attacks. Sales and destruction of brand image annoys the users.

  • OpenShift Node.js Tutorial with Video

    OpenShift Node.js Tutorial with Video is an excellent guide for anyone! You can create your own instance of Node.js Application within few minutes.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Online Dating: How to Find Your Match March 20, 2023
  • Web Design Cookbook: Logo March 19, 2023
  • How Starlink Internet Works March 17, 2023
  • The Importance of a Camera Tracking System in Virtual Production March 15, 2023
  • Understanding the Key Differences between Docker and OpenVZ March 14, 2023

About This Article

Cite this article as: Abhishek Ghosh, "Speed up WordPress With Enqueue Scripts and Rackspace Cloud Files," in The Customize Windows, March 5, 2014, March 21, 2023, https://thecustomizewindows.com/2014/03/speed-up-wordpress-with-enqueue-scripts-and-rackspace-cloud-files/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT