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

Startup time high on Android Chrome and Edge. Firefox normal speed #435

Open
mensand opened this issue Jan 27, 2023 · 4 comments
Open

Startup time high on Android Chrome and Edge. Firefox normal speed #435

mensand opened this issue Jan 27, 2023 · 4 comments

Comments

@mensand
Copy link

mensand commented Jan 27, 2023

I have a page with a ngx-markdown on it. When this is loaded for the first time on android in both edge and chrome the startup time is about 8 seconds. When i open the page in firefox on android the page is almost instant. I've updated to the latest 5.1
You can check on your own page to see the problem

https://jfcere.github.io/ngx-markdown/get-started

@jfcere
Copy link
Owner

jfcere commented Feb 4, 2023

Hi @mensand,

I don't think this is related to the package, the ngx-markdown demo loads almost instantly on my Android with chrome mobile browser. The only delay that is visible is due to the README.md loading time from to be GitHub site and it is probably less then a second.

@jfcere
Copy link
Owner

jfcere commented Feb 4, 2023

I've tested the ngx-markdown demo on a Samsung S9 with Samsung Internet browser and did have a slow loading time that took approximately 8 seconds to display the get-started page. Weird thing is that on the same phone with Chrome browser I didn't have the loading issue.

Not sure what this is about, I'll keep the issue open until I can find the time to investigate. Otherwise, feel free to investigate on your side to see if it is related to low performance on fetching HTTP files or anything.

@ariapahlavan
Copy link

I had a markdown div with the emoji directive and it was taking a few seconds to load. Removing the emoji directive fixed the slowness issue:

before (loads after a few seconds):

<div markdown emoji>

after (loads instantly):

<div markdown>

@thomas-w-grant
Copy link

I had a markdown div with the emoji directive and it was taking a few seconds to load. Removing the emoji directive fixed the slowness issue:

before (loads after a few seconds):

<div markdown emoji>

after (loads instantly):

<div markdown>

I have experienced the same thing. If I include the emoji attribute:

<markdown emoji [data]=project.notes"></markdown>

Then it takes 3 extra seconds the first time I load this page. If I remove the emoji attribute, it loads immediate.

I am also getting the following warning in Chrome dev console:

[Violation] 'setInterval' handler took 3751ms

This does not appear if I remove the emoji attribute. Makes sense, something is tacking on around 3750 ms to the component rendering.

Any suggestions? Is the emoji plugin loading something? Can I load that at app startup?

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

No branches or pull requests

4 participants