Solved

How is this .js file loaded but not in the source code.

Posted on 2016-09-19
5
117 Views
Last Modified: 2016-09-20
Google PageSpeed Insights tells me that I should "Enable compression for the following resources to reduce their transfer size by 141.6KiB (88% reduction) by:

Compressing https://s3.amazonaws.com/playerfiles2/and_big_al_081916.js could save 81.9KiB (85% reduction).
Compressing https://s3.amazonaws.com/playerfiles2/and_ua.js could save 59.7KiB (95% reduction).

I can't see these files in the page source code and I can't see where they come from or what they do.

Any ideas?

Thank you.
0
Comment
Question by:duz
  • 2
  • 2
5 Comments
 
LVL 55

Expert Comment

by:Julian Hansen
ID: 41804534
You have asked us where scripts are being included on a page you have not given us a reference to.
0
 
LVL 43

Accepted Solution

by:
zephyr_hex (Megan) earned 500 total points
ID: 41804929
Does the page have references to any other JS files?  If so, look at the source code for those files and see if the references are there.  You'll need to work your way back up the chain of linked files, checking each one for the references.
0
 
LVL 24

Author Comment

by:duz
ID: 41806927
zephyr_hex that was a useful suggestion. I tracked it down to a wordpress plugin which I have now replaced with a similar one but with no secondary js.

Thank you.
0
 
LVL 43

Expert Comment

by:zephyr_hex (Megan)
ID: 41807088
Glad you found a resolution.  If you've resolved the problem, you should close out the question.
0
 
LVL 24

Author Closing Comment

by:duz
ID: 41807112
Thanks
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question