Tag Archives: WordPress

The New Architecture of Infinite Script

It has been a long time since I last wrote a blog post. In the past few days, I updated the architecture of Infinite Script to accelerate the speed for Chinese users. In this article, I share the new architecture of our website with you. Optimizing a CDN for Static Content Delivery Static content does not change over a period of time. If it does change, the changes are predictable. Static content includes images, CSS sheets, JavaScripts, and PDF files. Because of this, CDNs can cache a copy of the content at their edge servers. They can then serve it whenever a client requests it. CDNs are best at optimizing the delivery of static content from edge servers to users. Therefore, we use…

Continue Reading

WordPress $ is not defined even if jQuery is loaded

Many times while using WordPress, if we try to use "e;$” to access jQuery, we get an error the "e;$ is not defined”. This happens because the jQuery library which is included in WordPress loads in "e;no conflict” mode. In the no conflict mode jQuery returns the control of "e;$”, and it is no longer accessible as function, variable or alias for jQuery. WordPress does this in order to prevent compatibility problems with other JavaScript libraries that can be loaded. To solve this we can use "e;jQuery” instead of "e;$”. So, instead of using the standard code with "e;$” we can use the following code, which uses "e;jQuery” instead of "e;$” If you want to use the default "e;$” symbol,…

Continue Reading

Rename Files During Upload within WordPress Backend

The passage is telling you how to rename the file name automatically by WordPress (without using any plugins). Warning: To apply this hack, you'll have to edit one of WordPress core files. Keep in mind that it is never recommended. This hack should be redone if you upgrade WordPress. open  the wp-admin/includes/files.php file, and go to the line 324 (approximately here). You'll see the following: Change it as following: And the file you upload will automatically renamed as 20130218180064x268c.ext

Continue Reading
Contact Us
  • Harbin Institute of Technology, Harbin, China
  • cshzxie [at] gmail [dot] com