Home Forums Plugin Support WP Project Manager Pro javascript load only on project page with [cpm] tag

This topic is: not resolved

This topic contains 3 replies, has 2 voices, and was last updated by  Tareq Hasan 6 years, 1 month ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1996

    brad
    Participant
    Post count: 6

    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?

     

    #1999

    Tareq Hasan
    Keymaster
    Post count: 2831

    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.

    #2004

    brad
    Participant
    Post count: 6

    how about to use only https for project page?

    do i need any special settings?

    #2005

    Tareq Hasan
    Keymaster
    Post count: 2831

    There are plugins for that.

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘javascript load only on project page with [cpm] tag’ is closed to new replies.