You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pagespeed.apache.org by GitBox <gi...@apache.org> on 2019/03/28 12:54:55 UTC

[GitHub] [incubator-pagespeed-ngx] jmarantz commented on issue #1638: \n inside minified javascript

jmarantz commented on issue #1638: \n inside minified javascript
URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1638#issuecomment-477582597
 
 
   That does not look like anything I have seen pagespeed do before. Is it
   possible there is another module loaded into nginx or an upstream origin
   that is doing some content transformation?
   
   Failing that, can you share the snippet of origin HTML that loads the
   JavaScript, and also the original js file?
   
   On Thu, Mar 28, 2019, 7:50 AM Igor Mizak <no...@github.com> wrote:
   
   > i am using latest pagespeed with latest nginx. it was throwing some errors
   > and when i opened minified javascript file I seen that pagespeed added \n
   > for every new line in minified script. here is the sample:
   >
   > var mod_pagespeed_2SYH0Iu33n = "class UserMediaRecorder {\n
   > constructor(options) {\n this.openbutton = '#openRecordPanel';\n if (typeof
   > options.openbutton !== 'undefined'){\n this.openbutton =
   > options.openbutton;\n }\n this.lengthSeconds = false;\n if (typeof
   > options.limit !== 'undefined'){\n this.lengthSeconds = options.limit;\n }\n
   > this.msecondsLeft;\n this.isPaused = false;\n this.constraints = {audio:
   > true, video: true};\n if (typeof options.constraints !== 'undefined'){\n
   > this.constraints = options.constraints;\n }\n this.containerClass = '';\n
   > if (typeof options.containerClass !== 'undefined'){\n this.containerClass =
   > options.containerClass;\n }\n this.onfileupload =
   > function(blob){console.log(blob);};\n if (typeof options.onfileupload !==
   > 'undefined'){\n this.onfileupload = options.onfileupload;\n }\n\n
   >
   > —
   > You are receiving this because you are subscribed to this thread.
   > Reply to this email directly, view it on GitHub
   > <https://github.com/apache/incubator-pagespeed-ngx/issues/1638>, or mute
   > the thread
   > <https://github.com/notifications/unsubscribe-auth/AB2kPRFnCxW_q7Ck2N3Rnln6kTLNovPPks5vbKyBgaJpZM4cP-B3>
   > .
   >
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services