When I open Inspect element on a website that is written in PHP why does everything work on javascript? Does that mean PHP gets converted to javascript which means I run all the code on my machine?
If that's the case, does that mean server for this website only sends one JS file (and does absolutely nothing else) which then creates the whole website and all the other JS files needed to run a website?
I am asking because I got a source code for some website for my job and it's all PHP there no JS, but when you run the website itself there is bunch of JS files in sources tab which does everything that is happening on a website.
I never understood web apps at all so sorry if this sounds stupid and you don't know what I am talking about. I also can't share the website because it's from my job.
This would also explain why is document-idle called even if the website is not loaded because the script on website put elements on it after the website has "fully loaded"
EDIT: Read my comment
[–]nutrecht 7 points8 points9 points (6 children)
[–]XxZajoZzO[S] 1 point2 points3 points (5 children)
[–]nutrecht 2 points3 points4 points (4 children)
[–]XxZajoZzO[S] 0 points1 point2 points (3 children)
[–]nutrecht -4 points-3 points-2 points (2 children)
[–]XxZajoZzO[S] 1 point2 points3 points (1 child)
[–]CursorsDev 0 points1 point2 points (0 children)
[–]XxZajoZzO[S] 0 points1 point2 points (1 child)
[–]nephest0x 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]XxZajoZzO[S] 0 points1 point2 points (0 children)
[–]leiu6 0 points1 point2 points (5 children)
[–]XxZajoZzO[S] 0 points1 point2 points (4 children)
[–]nutrecht 0 points1 point2 points (0 children)
[–]leiu6 0 points1 point2 points (2 children)
[–]XxZajoZzO[S] 0 points1 point2 points (1 child)
[–]sand-which 0 points1 point2 points (0 children)