javascript load only on project page with [cpm] tag

This topic contains 3 reply and 2 voices, and was last updated by Tareq Hasan 10 years, 11 months ago
Viewing 3 Posts - 1 through 3 (of 3 total)
Author Posts
April 10, 2013 at 4:33 pm 1996
Tareq Hasan i see in sources that all js files loaded into header, but is it possible to load it only on project page where is [cpm] is set?  
April 10, 2013 at 4:54 pm 1999
Tareq Hasan Tareq Hasan

There isn’t any settings that the plugin might know what page contains [cpm] shortcode. Although there is a has_shortcode function, but that might slow down the page load little bit since it checks in every page load. You shouldn’t worry about the script loading issue, because once it’s loaded, browser will cache them for later page loads.

April 10, 2013 at 5:56 pm 2004
brad brad

how about to use only https for project page?

do i need any special settings?

April 10, 2013 at 6:43 pm 2005
Tareq Hasan Tareq Hasan

There are plugins for that.

Viewing 3 Posts - 1 through 3 (of 3 total)