>
Download This Plugin | |
Download Elegant Themes | |
Name | Load jQuery mobile and related css file from google apis |
Version | 1.0 |
Author | "William Holt" |
Rating | 0 |
Last updated | 2014-02-27 12:54:00 |
Downloads |
280
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 3%, while Post page PageSpeed score has been degraded by 3%
Load jQuery mobile and related css file from google apis plugin added 406 kB of resources to the Home page and 406 kB of resources to the sample Post page.
Load jQuery mobile and related css file from google apis plugin added 1 new host(s) to the Home page and 1 new host(s) to the sample Post page.
Great! Load jQuery mobile and related css file from google apis plugin ads no tables to your Wordpress blog database.This plug-in is designed to be activated/deactivated through coding, it requires that jQuery be in place before hand, and checks to make sure this is so. It takes one argument, a variable, which can easily be edited. This variable allows you to choose which version you want loaded. It will get the jQuery minified library and the core jQuery mobile css files from the google apis repository. It registers the script via wp_register_script, and then enqueues the script via wp_enqueue_script. It will then load the style via wp_enqueue_style. My thinking was to activate/deactivate this plugin upon determining if or not a mobile device is requesting data, in conjunction with switching templates (via coding). IE: if mobile, switch to mobile template and activate plug-in, if not, load default template and ensure plug-in is deactivated.