• 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 313 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 (22.1K 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

  • Ways To Make Sure Your Online Course Outshine Others July 3, 2022
  • Will Smart Factories Become the New Assembly Line? July 2, 2022
  • The Cost of Doing Business as a Handyman July 1, 2022
  • Samsung Galaxy S22 Ultra: Long Term Review June 30, 2022
  • How to Make the Most of Your S Pen (S22 Ultra) June 29, 2022

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, July 4, 2022, https://thecustomizewindows.com/2014/03/speed-up-wordpress-with-enqueue-scripts-and-rackspace-cloud-files/.

Source:The Customize Windows, JiMA.in

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Privacy Policy.

PC users can consult Corrine Chorney for Security.

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

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

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