question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve on load performance

See original GitHub issue

Problem: Initial phase is very heavy and create long function call if page have lot of links/forms. Example profile when running in chrome, throttled by lighthouse: image There is just two elements that needs to be processed and have data attribute hx-get. However init code also look for link and form elements.

Solution: Is it possible to remove form and link from initial querySelectorAll ? What is purpose have form and link in selector ?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
1cgcommented, Nov 3, 2020

I am being lazy and processing all anchors and forms to see if they are “boosted” by hx-boost

Better perf would be to look for [hx-boost] and then find all anchor tags and forms below it. I will try to get this in the next release.

0reactions
1cgcommented, Nov 11, 2020

thanks for catching that, I have removed the unused parameter

Read more comments on GitHub >

github_iconTop Results From Across the Web

9 Quick Ways to Improve Page Loading Speed - HubSpot Blog
1. Choose a performance-optimized hosting solution. · 2. Compress and optimize your images. · 3. Reduce your redirects. · 4. Cache your web...
Read more >
20 Ways to Speed Up Your Website and Improve Conversion ...
In this post, we'll go over 20 tips and best practices you can use to decrease your load times and improve your site's...
Read more >
Website Speed and Performance Optimization Best Practices
Guidelines to speed up your website · 1. Use a Content Delivery Network (CDN) · 2. Move your website to a better host...
Read more >
3 Simple Tips to Improve Your Website Page Load Speed
1. Optimize images and video ... Some of THE biggest culprits increasing your webpage load time are images and video—as they take up...
Read more >
Options for improving load performance - IBM
There are various command parameters that you can use to optimize load performance. There are also a number of file type modifiers unique...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found