0

When i include "snow.js" javascript some additional third party javascripts are also loaded in page. and when "snow.js" is not used then no third party javascripts are loaded. how can I find the code in "snow.js" which calls/uses these thrid party javascripts.

The "snow.js" file is a large file and it does not use organised programming format.

the link to "snow.js" file

screenshot of sources when "snow.js" is included in main html

I am not able to find the code which uses this javascript file so that I can delete that.

  • I downloaded snow.js (based on your link) to local and used in my sample html file and it didn't downloaded any extra third party files. Also the link http://www.nightfoodbike.com/test/snow.js doesn't download any other js files based on Google Chrome inspector. – Phani Kumar M Aug 28 '17 at 12:27
  • thanks for responding .It is not downloading a file but chrome inspector shows use of other Js files as shown in screenshot – Sangam Aug 28 '17 at 13:23

1 Answers1

0

It was like finding needle in haystack but out of 3500 line code I found by using these steps.

  1. "ctrl+f" to search.
  2. search "text/javascript" .
  3. replace "text/javascript" with space.

this worked for me. I dont know how it exactly worked but I removed the part of code which are used to call another scripts. for reference Dynamically load a JavaScript file

If anyone understands how this happed exactly please share.