Sam Perrow
Forum Replies Created
-
Forum: Plugins
In reply to: [Pre* Party Resource Hints] HTTP Header removed@nicolaottomano I just released an update which adds back the HTTP header option.
Forum: Plugins
In reply to: [Pre* Party Resource Hints] Resource Hint logicHi @seedsca, thank you for the kind words.
I am developing a new version which allows the user to insert hints to specific pages, and a few other benefits. I’ve had to rewrite quite a bit of things to get it working properly, but I do have a version that can do that. I will PM you on slack about the details.
Forum: Reviews
In reply to: [Pre* Party Resource Hints] Wow is an understatement !!!@shirtguy72 thank you for the kind words. I have an updated version which allows for the hints to be edited inline, and hint addding/update/deletions are 100% ajax. Here is the link https://github.com/samperrow/pre-party-browser-hints/tree/1.7.0 if you want to check out/demo the advanced version.
@kavitas and @mommens sorry to hear the upgrade to 1.6 was a bumpy one for you two. I had to refactor the whole plugin, modify table schema, and update the file structure to support the improved version I have been working on.
This would allow inline table editing (nearly the same as “quick fix”), ajax hint updates, and a few more improvements. Would either of you care to test out this new version? You can PM me on the WP slack channel.I’m confident you should still have a ‘gktpp_table’ table in your db, if so you can copy those hints to the new table named ‘pprh_table’.
I’m sorry that happened to you. I had checked how the upgrade process works for many PHP versions and didn’t encounter an issue.
But, on the bright side the newer version has several improvements over the older one, and I’m working on an even better version which allows users to input post specific hints, inline table hint editing, and ajax table updates.
That’s obviously no good. Did you upgrade from a 1.5 version to the latest 1.6.42? For that upgrade, I put some measures in place to safeguard against that happening. This is the first I’ve heard of all hints being deleted upon upgrade.
Can you tell me which PHP and WP version you are using?
Don’t use crossorigin on that request, and you should be good. I just tested it on my site and got the same error, and removing the crossorigin resolves it.
No need to use that attribute in this situation. Crossorigin’s are generally only used for preconnecting fonts.Forum: Plugins
In reply to: [Pre* Party Resource Hints] Re setupclosing due to no response.
Forum: Plugins
In reply to: [Pre* Party Resource Hints] HTTP Header removed@nicolaottomano I don’t believe there is much of a performance difference, if at all, of using hints in the HTTP header vs. the HTML head. The next version’s added benefits of using hints on a per-post basis more than makes up for the loss of that functionality.
I do see your point- and I may add an option to allow global hints to be added in the HTTP header, while post-specific hints will not have that ability.Forum: Plugins
In reply to: [Pre* Party Resource Hints] HTTP Header removed@nicolaottomano, you will still be able to preload these things globally- the new version has options to insert hints globally or on a per-post basis.
Forum: Plugins
In reply to: [Pre* Party Resource Hints] HTTP Header removedHi @nicolaottomano,
I have a version in development that allows users to insert hints to individual posts/pages, not just global hints. I did a lot of research on this matter, and as far as I know- at the time when HTTP headers are sent by wordpress, wp does not know what the current post is. For this reason, it’s not possible to send resource hints with HTTP headers to unique posts (afaik). If you can prove me wrong I’d be glad to reincorporate HTTP header support.
With that version in place, I don’t believe it is feasible or practical to keep support for HTTP headers.
I know the added ability to implement hints to unique posts will dramatically improve functionality and more than compensate for the removed support of HTTP headers.Forum: Plugins
In reply to: [Pre* Party Resource Hints] Re setupGreetings, can you send me an email though the contact button at the bottom of the plugin page? If you are using version 1.5.8 or below, then there is a contact form box you can email me.
Forum: Plugins
In reply to: [Pre* Party Resource Hints] Manually editing entriesRead this article for more information about why crossorigin is needed for fonts: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS.
If you are going to preload an image, you can do so, but there wouldn’t be a need to preconnect it also. What I mean is that when using preload, you must specify an entire URL for that resource, but with all preconnect hints you only need to specify a domain name. The reason is due to the different nature of the two resource hints.
I plan on releasing an updated version of the plugin which allows users to specify crossorigin, as, and the type attributes. Stay tuned!
Forum: Plugins
In reply to: [Pre* Party Resource Hints] Manually editing entriesGreetings,
For the ytimg.com preconnect in this situation, it looks like Lighthouse is giving you that warning because no resources were loaded from that domain on that particular page. Crossorigin attributes are typically only needed when preconnecting fonts. Could you send me your domain name so I can take a better look? You can find me on the WP slack channel.When using preload, you must specify a specific resource that is required on a page, like a CSS, JS, or image. That will allow the resource to be loaded and available sooner than it typically would. You have two domains sumo.com and load.sumo.com preloaded, which isn’t the right use case for the preload hint.
I am working hard on an updated version that allows users to better control resource hint attributes. Stay tuned.
Hope this helps, Sam