You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am using the package to create a sitemap of a VueJS site (created with Vue CLI not Nuxt) and I never seem to get a full set of results.
The Vue site uses Axios to get its content from a CraftCMS Element API endpoint so I understand that the majority of links won't be present exactly at the point that the page is loaded.
Initially I thought that if I added a delay to the Browsershot instance then I would give the site a chance to load before it crawled it. However this still does not give me a full set of results, the strange thing is that it does appear to be getting some of the links that are generated by the axios call, just not all of them. I've extended the delay to (an extreme) 20 seconds just to see if that made a difference, it didn't.
I have put my code below - due to the issue mentioned here (#315) I have had to include a direct link to my Chromium installation.
This discussion was converted from issue #344 on December 10, 2020 12:50.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am using the package to create a sitemap of a VueJS site (created with Vue CLI not Nuxt) and I never seem to get a full set of results.
The Vue site uses Axios to get its content from a CraftCMS Element API endpoint so I understand that the majority of links won't be present exactly at the point that the page is loaded.
Initially I thought that if I added a delay to the Browsershot instance then I would give the site a chance to load before it crawled it. However this still does not give me a full set of results, the strange thing is that it does appear to be getting some of the links that are generated by the axios call, just not all of them. I've extended the delay to (an extreme) 20 seconds just to see if that made a difference, it didn't.
I have put my code below - due to the issue mentioned here (#315) I have had to include a direct link to my Chromium installation.
Any pointers/help appreciated.
Beta Was this translation helpful? Give feedback.
All reactions