Jump to content

asmSelect and Google PageSpeed mod_pagespeed


krisj
 Share

Recommended Posts

Hi guys,

I wonder if anyone's figured what exactly from mod_pagespeed prevents asmSelect to load/work in PW admin.

The server has mod_pagespeed enabled with a ton of optimizations and everything seems to fly except for asmSelect not loading/working. As soon as I turn off pagespeed for admin dir, it works straight away.

In case anyone is interested:

<IfModule pagespeed_module>
  ModPagespeedDisallow http://*amazingdomainname.com/ungessableadminlink/*
</IfModule>

I will spend more time narrowing it down when I have time, but just wondering if anyone's had the same run in with it?

cheers,

k

  • Like 1
Link to comment
Share on other sites

  • 1 year later...

I've run into this issue a few times...extremely frustrating, until you figure it out, of course :)

After some snooping I determined it has to do with mod_pagespeed's elide_attributes flag, which removes default values, i.e. <select multiple="multiple"> becomes just <select multiple>.  Unfortunately, Inputfield asmSelect's JS hooks onto select[multiple="multiple"], and thus skips those elements when the value isn't explicitly set.

Long story short, remove elide_attributes from ModPagespeedEnableFilters in pagespeed.conf, restart your web server, and it should work.

  • Like 5
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...