How can I “upgrade” the jQuery version in the DOM?

Being in place with the client, I suggested updating the version of jQuery that the client uses (i.e. from jQuery 1.5 to 1.11). The client has little concern that their version of TimeGlider will not be compatible with the new jQuery. I am not familiar with TimeGlider, so they viewed the (wth Chrome) page with TimeGlider to show it to me.

It seemed to me that I would choose to “update” the jQuery DOM library using the developer tools to immediately resolve the issue. I know one way to import the jQuery 1.11 library , but this technique will require an easy way to uninstall the old version of jQuery first. Perhaps there is a better approach.

Of course, these are trivialities for editing in the source code, but I really wanted to do this in the DOM using the developer tools.

How can I “upgrade” the jQuery version in the DOM?

+5
source share
1 answer
  • Click the Sources tab.
  • Find the jQuery file ( cmd + p / ctrl + p ).
  • Add a breakpoint in the first (non-comment) line of the script.
  • Refresh the page.
  • When execution stops, select the full contents of the file and replace it with the contents of jquery-1.11.0.min.js .
  • Save the changes ( cmd + s / ctrl + s ).
  • The file will be recompiled and jQuery 1.11.0 will be launched on the website.

recompiled version of jQuery

+16
source

Source: https://habr.com/ru/post/1209403/


All Articles