summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/class.photon.php')
-rw-r--r--plugins/jetpack/class.photon.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/jetpack/class.photon.php b/plugins/jetpack/class.photon.php
index 58a3e11d..53f1a56f 100644
--- a/plugins/jetpack/class.photon.php
+++ b/plugins/jetpack/class.photon.php
@@ -1014,6 +1014,9 @@ class Jetpack_Photon {
* @return null
*/
public function action_wp_enqueue_scripts() {
+ if ( Jetpack_AMP_Support::is_amp_request() ) {
+ return;
+ }
wp_enqueue_script(
'jetpack-photon',
Jetpack::get_file_url_for_environment(