Posted: January 8, 2020 at 11:46 am
|
Hello, This is urgent. I am using the ticket selector on a page and it is beyond slow to bring up the registration page. Please advise ASAP as I’m looking for a fix quickly – registrations will be starting this week. Here is an example link: Thanks, |
Hi Steve, I checked and the page in question is no slower than any other page on your site. One thing that will help with speeding up your site will be to reduce the number of http requests. Currently there are about 140 requests to load up a page on your website (most of them are separate JavaScript, CSS, and font files). A plugin like Fast Velocity Minify can help. |
|
|
There’s no way that it’s as slow as anything else on my site. That is ludicrous. I have a 10-second count to open the registration page from the ticket selector. What can you suggest to speed up the link from the ticket selector? Thank you. |
Hi Steve, I’ve already made a suggestion, but I’ll try to explain further with a few details. Your home page took 9.68 seconds to load. Here’s a screenshot from the browser inspector’s network tab that has all the details: the registration page load time after the ticket selector submission was 8.98 seconds. Here’s a screenshot using the same tool to measure the time it took: https://slack-files.com/T02SY781D-FSEM0PB1N-8d7a6d394f A web page with over 100 http requests will be slow. A good way to speed things up is reduce the amount of data per request and the number of requests. The Fast Velocity Minify plugin will be a good quick fix. From there as a additional, longer term, solution you can look at caching, image compression, and have a conversation with your web host to see what kinds of options they have for higher performant web servers. |
|
|
Ok. I can look at those items, but I guess doesn’t make sense is the ticket selector is loading some text and a few fields. The pages your comparing to are rich in images, text, buttons, etc. And they load in pieces so the site is accessible. The registration from takes 9 seconds from click and has little to nothing on the page. |
The registration page, and every other page on the site, are still loading all of those scripts and stylesheets. 5.96 Megabytes worth. Whether they’re needed or not. This is typical of a WordPress site, and it’s a problem that a plugin like Fast Velocity Minify tries to solve. |
|
|
Josh, thank you for your help on this — I have implemented what you mentioned above. I would like to take this one step further and add a “loading wheel” when the ticket selector is clicked (onclick event). I found this link, but I’m not sure how to implement: Here’s a link to the loading wheel gif: Thank you, |
|
I would like to add a “loading wheel” when the ticket selector is clicked (onclick event?). This already happens after confirming registration — now I need it for ticket selector. I found this link, but I’m not sure how to implement: Here’s a link to the loading wheel gif: Thank you, |
Hi Steve, I added the code from your stackoverflow thread and found it didn’t work. It did show a “loading…” message when the button is clicked, but no spinner. Here’s another way to add a spinner: 1) Add this html code to your page (it can be anywhere on the page)
2) Then add the following code into a site-specific snippets plugin:
3) Then activate the plugin You can add the above to a functions plugin. One other thing that could be slowing down your site could be related to this error:
You could try either deactivating OptinMonster, or fixing its settings so the campaign can be found. |
|
|
Excellent – Thank you! Last question – is it possible to put a grey overlay on the screen based on what you shared? (rgba(3, 1, 4, 0.26)) Thanks! |
Yes that’s possible. You could add something like this to your custom CSS:
Then add this into the function that’s triggered on the click event: |
|
|
Sorry, Josh. This is way above me. Sorry to be a pain. Can you please post the code in entirety. This is what I did and it isn’t working `add_action(‘wp_enqueue_scripts’, ‘my_add_inline_script_eets’, 20); |
Hi, This is the JavaScript code in its entirety:
|
|
|
Thank you, Josh. That worked. Is there any way to code this so that it’s not getting blocked by a pop-up blocker? |
|
It appears the overlay is the problem. |
Hi, What kind of pop up blocker are we talking about? I can look into this if I know the name of the extension/setting and browser. |
|
|
Hi, Josh. uBlock Origin is what I’m using. Also, loading gif seems to not play on iPhone – any workaround there? |
Hi Steve, I see no issues with the overlay with the uBlock Origin extension activated on Firefox. I’m not sure why you’re having issues there, and I don’t know where to start with troubleshooting that issue since I can’t replicate it. With the spinner, what you can do instead is add this to your custom CSS:
What that will do is add a CSS spin animation effect to the image. So you could use any static image (instead of an animated gif). |
|
The support post ‘Ticket Selector Beyond Slow’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.