Skip to content

Slow Loading Times #63

Description

@nowmichaelclark

Describe the bug
For now, just dumping what I find here as I find it. Not always sure what I am looking at. Using this page to test loading times using the chrome debugger: https://opensanghafoundation.org/newsite/a-mikey-test-page/

google maps elements not found (don't need to be loaded)

these are being called and have errors and timeouts:
paypal
recaptcha
bettermessages
youtube
google play

deprecated Elementor (elementor needs updating)

bp-messages has many tasks labeled as "Long Tasks" in chrome indicating that it is loading in slow
also bp-messages audio content not allowed to start

"Found 2 elements with non-unique id": This occurs several times, not sure how to track yet

can also convert images and icons to ".webp" format for faster loading

jQuery: some javascript code uses deprecated formating; "event shorthand is deprecated"

AI Explanation for JQuery-

The Cause of the Error (Likely):
Somewhere in your web application's JavaScript code, you're probably using a syntax like this:

Copy code
$('form').submit(function(event) {
// Your form submission logic here
});
Use code snippets with caution

This shorthand way of binding the submit event is considered deprecated.
The Solution:
You should replace the shorthand with the more standard .on() method:

Copy code
$('form').on('submit', function(event) {
// Your form submission logic here
});
Use code snippets with caution

Explanation:
.submit() shorthand: This was a convenient way to attach an event handler to the submit event, but it's no longer the recommended approach.
.on() method: This is the more versatile and preferred way to bind events in jQuery. It allows you to attach events to elements even if they are added to the DOM later.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions