Home >Backend Development >PHP Tutorial >How to check which line of code caused the http request?

How to check which line of code caused the http request?

WBOY
WBOYOriginal
2016-10-22 00:14:181644browse

I downloaded a wordpress theme from the Internet. When I used it, I found that the css file and js file of the theme were loaded from CDN acceleration. I wanted to change it to load it directly locally. However, there is a css file that is always loaded from the cdn. Using keyword search, I cannot find the code that loads it.

<code><link rel='stylesheet' id='apsc-font-awesome-css'  href='https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css?ver=1.6.5' type='text/css' media='all' /></code>

How to find out which piece of code is causing this?

Reply content:

I downloaded a wordpress theme from the Internet. When I used it, I found that the css file and js file of the theme were loaded from CDN acceleration. I wanted to change it to load it directly locally. However, there is a css file that is always loaded from the cdn. Using keyword search, I cannot find the code that loads it.

<code><link rel='stylesheet' id='apsc-font-awesome-css'  href='https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css?ver=1.6.5' type='text/css' media='all' /></code>

How to find out which piece of code is causing this?

In the entire project, try global fuzzy search on the file name

Look at the network tab of F12, place your mouse over
How to check which line of code caused the http request?
to see it.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn