• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

prism.js not getting compressed

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › prism.js not getting compressed

This topic is: not resolved

Tagged: prism.js text compression

  • This topic has 2 replies, 2 voices, and was last updated 6 years, 6 months ago by tomRmalcolm.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • June 6, 2019 at 8:29 am #491506
    tomRmalcolm
    Member

    Hello all,

    Google Lighthouse is flagging the file "prism.js(prism.app-us1.com)"
    for a lack of text compression, although I have gzip enabled in .htaccess.
    Prism.js is a tool that highlights your code syntax (as I understand it, https://prismjs.com/) However, I have no idea how it's part of my site...maybe it's coming from a plugin, but I can't find it.

    Has anyone seen this error and know how to fix it? Or exactly where prism.js is coming from?

    Thanks!
    Tom

    June 6, 2019 at 1:10 pm #491508
    Victor Font
    Moderator

    Prism.js is not part of the Genesis Framework or any Studio Press theme that I'm aware of.

    Also, as an FYI, if that is the URL of where the prism.js file is orginating, and that is not your server, you won't be able to compress it.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    June 6, 2019 at 3:31 pm #491511
    tomRmalcolm
    Member

    Hi Victor, thanks for your response.

    Here is the only place it shows up when I do "show page source"

    {attr=c.getAttribute(a),null!==attr&&c.setAttribute(a,attr.replace(/\/client\//,'/client/to_webp,'))})});</script><script type="text/javascript">(function(e,t,o,n,p,r,i){e.prismGlobalObjectAlias=n;e.pgo=e.pgo||function(){(e.pgo.q=e.pgo.q||[]).push(arguments)};e.pgo.l=(new Date).getTime();r=t.createElement("script");r.src=o;r.async=true;i=t.getElementsByTagName("script")[0];i.parentNode.insertBefore(r,i)})(window,document,"https://prism.app-us1.com/prism.js","pgo");

    Maybe I just have to live with it.

    Tom

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble