Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opening Developer tools makes the page response slow #1875

Open
Nidhishpp opened this issue Jun 1, 2022 · 42 comments
Open

Opening Developer tools makes the page response slow #1875

Nidhishpp opened this issue Jun 1, 2022 · 42 comments

Comments

@Nidhishpp
Copy link

Version

6.1.4

Browser and OS info

Brave 1.39.111/ Windows 11

Steps to reproduce

  1. Open a vue project in browser.
  2. Open Vue Dev Tools.
  3. Try to use the application.

What is expected?

Work normally

What is actually happening?

Page response gets really slow and gets stuck sometimes.

@liruisen
Copy link

liruisen commented Jun 7, 2022

I have the same problem

@SherinBloemendaal
Copy link

We have same problem. Vue devtools is extremely slow. Also Vue performance itself is slowing down, rendering components take about 1 sec wich is insane because without devtools its instant.

The performance profiler is worth nothing, it says a component render takes 1400MS but without the devtools its instant so the devtools are the cause of slowing it down.

@rvanbaalen
Copy link

I installed the standalone vue dev tools (electron app) and now my browser stopped lagging.

Would prefer to use it in browser but for the meantime, this will work.

@qq326943819
Copy link

The same.I think Devtools may affect the browser's main process

@TheNoim
Copy link

TheNoim commented Sep 14, 2022

Do you have SuperAgent or any similar addons installed? For me it was only slow with SuperAgent installed.

@M4thG33k
Copy link

M4thG33k commented Sep 23, 2022

I'm having the same issue with version 6.2.1 of the Chrome browser extension on Vivaldi 5.2.2623.48/Pop!_OS 22.04.

When dev tools has not been activated (either the developer console is closed or the Vue tab has not been opened with the extension added), everything runs smoothly and quickly. When the dev tools has been activated, I've noticed a significant slowdown/delay when rendering components - especially when depending on data from composables such as Pinia stores. (I have disabled the Pinia plugin to see if that was the issue, but I noticed the same experience with and without that plugin enabled.)

This issue is making it very painful to try to debug issues with my application.

I tried to use the standalone version, as rvanbaalen mentioned above, but it seems to reset its connection almost immediately after page load and/or a new route is viewed, meaning I can't look at any components, plugins, etc. and therefore rendering it useless to me.

Edit: Also tested on Chrome Version 104.0.5112.79 to make sure it wasn't a Vivaldi issue and had the same results. Oddly enough, though, testing on Firefox Version 104.0.2 doesn't have the same issue. So this may be a chromium-based issue, since Chrome, Firefox, and Brave (mentioned by Nidhishpp in the original post) are all chromium-based.

@Akryum
Copy link
Member

Akryum commented Sep 26, 2022

Can you notice an improvement with v6.3.0?

@pzgz
Copy link

pzgz commented Oct 1, 2022

sign, very painful with the performance, sometime I am just afraid of opening the vue-devtool tab, since it will slowdown the development process a lot. But it's very hard to debug vue app if there's no vue-devtool.

Sometime I have to rely on console.log to debug vue app, instead of using vue-devtools...

@M4thG33k
Copy link

M4thG33k commented Oct 5, 2022

@Akryum There may be a small improvement in v6.3.0 and later (I just tested with v6.4.2), but there is still significant lag/slowdown once dev tools is active.

@iingles
Copy link

iingles commented Oct 6, 2022

I've been having the same problem for the last year or so. It's gotten so bad that I just uninstalled it and I'm attempting to finish my app without it. Hopefully the issue is resolved soon.

@Akryum
Copy link
Member

Akryum commented Oct 6, 2022

Did you try turning 'Performance monitoring' and 'Update tracking' off?
image

@iingles
Copy link

iingles commented Oct 7, 2022

Did you try turning 'Performance monitoring' and 'Update tracking' off? image

I did, and I'm still having issues.

@Akryum
Copy link
Member

Akryum commented Oct 8, 2022

I create a guide here to share devtools performance profiles so we might get a better understanding of the issues you are experiencing.

@freedomlang
Copy link

freedomlang commented Oct 26, 2022

@Akryum Alse have same performance issue in firefox. Here is my firefox profile, hope it could help.

@imaverickk
Copy link

imaverickk commented Nov 16, 2022

@Akryum Devtools seems to cause components to unmount slowly, and the lag becomes especially noticeable when unmounting a large number of components at once.

Turning off ’Performance monitoring‘ and ’Update tracking‘ does not fix it.

A simple test

Create a new project using vite : pnpm create vite test-app --template vue

Modify App.vue :

<script setup>
import HelloWorld from './components/HelloWorld.vue'
import { ref } from 'vue'
let count = ref(5000)

function toggle(){
  count.value = count.value===1 ? 5000 : 1
}
</script>

<template>
  <div @click="toggle">Toggle</div>
  <HelloWorld :msg="String(index)" v-for="index of count" />
</template>

Start a performance recording
Click 'Toogle'

The performance of creating components is also degraded, but within acceptable limits, while the performance degradation of unmount is very exaggerated, the unmount time has increased several hundred times.

Profile

This is indeed an extreme example, but in one of my projects where a page contained a Table(naive-ui) with a lot of data, leaving the page lagged for almost 30 seconds when devtools was enabled, and when devtools was disabled, there was no lag.

@Akryum
Copy link
Member

Akryum commented Nov 16, 2022

@imaverickk could you post a performance profile like explained in this guide? 🙏
https://devtools.vuejs.org/guide/devtools-perf.html

@yangfan-coder
Copy link

Have you solved the problem? I have the same problem

@iingles
Copy link

iingles commented Dec 30, 2022 via email

@atilkan
Copy link

atilkan commented Dec 30, 2022

No. I just don't use the devtools unless I have to.

Same here. Even if you turn off all performance related settings it still makes page unresponsive. And there has not been any update since these issues started or none solve the issue. This has been going on for months now.

@mikimoresi
Copy link

I agree, this totally kills the development experience...

It's an urgent issue IMHO, are there news?

@iingles
Copy link

iingles commented Feb 2, 2023 via email

@atilkan
Copy link

atilkan commented Feb 3, 2023

There is a new version. It is a little better but the issue is not fully resolved it seems.

@kokoriolll
Copy link

I have same problem

@alansgonzaga
Copy link

alansgonzaga commented Jul 13, 2023

I have a list (v-for) of products I run in a Dialog, I was loosing my mind here trying to understand why on my PC it was taking so long to open (>6000 ms patch time), and also I use other computer daily on my job and there it was taking just 0.3sec, something like that. Also sometime on my PC it was rendering fast and I wasn't understand why sometimes take 0.3sec and later >6s. Found it: DEVTOOLS. When Devtools is open it takes more than 6000s to Patch.

When I open the modal with the DEVTOOLS CLOSED 362ms
image

Refreshing page and trying to load same modal but with DEVTOOLS OPEN 6130ms
image
image

@seggewiss
Copy link

@Akryum I tried to create a performance profile like you described in your guide. But funny enough with the dev setup of the extension our application works fine. With the extension in Chrome directly however the application freezes for several seconds in the same situation. I created a screen recording of this you can check it out here.

@ahmed-fawzy99
Copy link

ahmed-fawzy99 commented Jul 22, 2023

Same problem for me. My component's load time increases massively when I have the devtools open. I thought I introduces code that slows down my application, but closing the devtool stops the problem. Using chrome 114.0.5735.198. & latest Vue Devtools version.

@Francesco146

This comment was marked as outdated.

@iingles
Copy link

iingles commented Oct 25, 2023 via email

@arthabus
Copy link

arthabus commented Oct 26, 2023

Same here. Migrating from vue2 to vue3 and I spent almost an hour trying to figure out why it suddenly started to take almost 2 sec for my dialog to open while it was always instant before.

I started to use devtools performance profiler and surely it showed my components render for almost 2 sec.
So I started to try to optimized it until I closed the devtools.

That was the moment when it all started to work instantly just as before.

I have relatively sophisticated view tree - can it be that rendering all those views in the profiler graph slows everything down?
You can see below that the tree is pretty busy and I can imagine that rendering every tiny child can be time consuming.

Screenshot 2023-10-26 at 15 23 55

@sk8killer
Copy link

It seems me that i encounter this slowly response when i use destructuring properties from stores with storeToRefs(store).

My app is very fast and no slow response when i don't use const { propertyExample } = storeToRefs(storeRoot) but directly storeRoot.propertyExample. (But we need to use storeToRefs(store) to watch stores properties...)

Also, this problem seems to occur only in dev mode, not in production mode or generate mode (NUXT)

@mikimoresi
Copy link

mikimoresi commented Nov 4, 2023

It seems me that i encounter this slowly response when i use destructuring properties from stores with storeToRefs(store).

My app is very fast and no slow response when i don't use const { propertyExample } = storeToRefs(storeRoot) but directly storeRoot.propertyExample. (But we need to use storeToRefs(store) to watch stores properties...)

Also, this problem seems to occur only in dev mode, not

It seems me that i encounter this slowly response when i use destructuring properties from stores with storeToRefs(store).

My app is very fast and no slow response when i don't use const { propertyExample } = storeToRefs(storeRoot) but directly storeRoot.propertyExample. (But we need to use storeToRefs(store) to watch stores properties...)

Also, this problem seems to occur only in dev mode, not in production mode or generate mode (NUXT)

If you try to render multiple instances of a component that render long lists of elements, no matter the complexity of the listed elements, no matter if they are binded to the store or just statically hardcoded, vue dev tool will start to slow down everything..

My actual workaround is to set some global debug vars to limit those elements to render a maximum of 6 listed elements, doing this allows me to work pretty decently even with open dev tools....this is the best workaround I could find, and of course I would like to get rid of it...

@mikimoresi
Copy link

since last version everything seems to work fast and fluid, thank you, great work!

@TechAkayy
Copy link

TechAkayy commented Feb 22, 2024

Same here, Thanks lot @Akryum 🙂

@devCodeHub-star
Copy link

Hello @seggewiss and @Akryum
I also have the performance issue in my project when using the vue-devtools chrome extension. I did the dev setup which explained here, everything works fine until I open the chrome-devtools. When ever I try to debug the code with vue-devtools and chrome-devtools everything goes slow.
Is there any workaround to address the issue ?

Thankyou

@dysphasia
Copy link

Has there be any movement on this? This issue has persisted for a couple years now and it makes devtools completely unusable.

@iingles
Copy link

iingles commented May 20, 2024 via email

@dysphasia
Copy link

dysphasia commented May 20, 2024

I haven't seen any movement on the browser plugin version, but the Vite plugin version that comes along when you install a new Vue 3 project that runs as a browser overlay seems to work really well so far. I was able to install it on an older Vue 3 project as well, it's the "vite-plugin-vue-devtools" package

I had the same issue with that tool as well. I appreciate the suggestion though.

@XStarlink
Copy link

Has there be any movement on this? This issue has persisted for a couple years now and it makes devtools completely unusable.

Have you tried these?

https://github.com/vuejs/devtools-next

@mikimoresi
Copy link

Has there be any movement on this? This issue has persisted for a couple years now and it makes devtools completely unusable.

Have you tried these?

https://github.com/vuejs/devtools-next

wow, this is really awesome.. outstanding job..really!
just tested a bit, i will start to work only on this, i will give my feedbacks but as first look reaction I'm impressed.

@XStarlink
Copy link

XStarlink commented May 21, 2024

wow, this is really awesome.. outstanding job..really! just tested a bit, i will start to work only on this, i will give my feedbacks but as first look reaction I'm impressed.

Yes, they made an ultra good DX,

These devtools come from the version originally created for Nuxt, but they've been shared with the entire community, Vue, Vite etc.

If you use Nuxt, the Nuxt devtools have even more great time-saving features.

https://devtools.nuxt.com/guide/features

@mikimoresi
Copy link

wow, this is really awesome.. outstanding job..really! just tested a bit, i will start to work only on this, i will give my feedbacks but as first look reaction I'm impressed.

Yes, they made an ultra good DX,

These devtools come from the version originally created for Nuxt, but they've been shared with the entire community, Vue, Vite etc.

If you use Nuxt, the Nuxt devtools have even more great time-saving features.

https://devtools.nuxt.com/guide/features

No nuxt here :D full custom vertical meta framework, i love maximum flexibility and full control.. anyway many thanks to the Nuxt team...sorry for the off topic..

@KaelWD
Copy link

KaelWD commented Jul 26, 2024

v7 isn't any better, now it slows the page down even without opening the vue tab: vuejs/devtools#548

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests