JackWM
JackWM

Reputation: 10535

How to disable the execution of JavaScript in a simple way?

I want to measure the HTML parsing time of some webpages. One difficulty is the parsing and JavaScript execution happen alternatively.

I am not familiar with html and javascript, is there any simple way to disable the execution of the scripts?

E.g. inserting <noscript> to some places (I am not sure if this will work)

By the way, I do experiments on Android.

Upvotes: 0

Views: 142

Answers (2)

kiranvj
kiranvj

Reputation: 34107

  1. Type

    chrome://settings/content

    in Chrome browser address bar.

  2. Under JavaScript section select "Do not allow any site to run JavaScript".
  3. Click Done.
  4. Refresh page, JavaScript will not be executed.

Upvotes: 1

Mohsen
Mohsen

Reputation: 65785

You can disable JavaScript in Chrome developer tools. Click on settings icon on lower right of the tool then you will find the settings.

enter image description here

Upvotes: 3

Related Questions