Can I know the line for load the js file

11 views
Skip to first unread message

Kenneth Chan

unread,
Jun 30, 2016, 1:15:17 AM6/30/16
to Google Chrome Developer Tools
Hi All,

I found my website loaded angular.js and angular.min.js. But In fact, I only expect to load angular.min.js. How can I know which line the website load the angular.js?
Thanks.

PhistucK

unread,
Jun 30, 2016, 1:19:46 AM6/30/16
to Google Chrome Developer Tools
I would guess angular.min.js has a source map declaration at the end of it, which makes the browser load it and in turn load the non-minified sources of Angular, as defined in the source map.
If you disable JavaScript source maps (press F1), angular.js will probably not load.


PhistucK

--
You received this message because you are subscribed to the Google Groups "Google Chrome Developer Tools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-develo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-chrome-developer-tools/dcf8393c-3d03-489f-856d-24f59ce53087%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Blaise Bruer

unread,
Jun 30, 2016, 12:14:36 PM6/30/16
to Google Chrome Developer Tools
You should have it under "initiator" for the referenced row in network panel.

Reply all
Reply to author
Forward
0 new messages