-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add "Already added by other plugin/theme" #88
Comments
Are you experiencing a conflict as a result of this? This plugin has a feature for preventing conflicting loads of Font Awesome: the Conflict Detection Scanner on the Troubleshoot tab. Part of what this plugin provides is an API on the back end--for other themes or plugins that may use it like an "icon service". So it wouldn't work for this plugin to delegate to a version of Font Awesome that's being loaded from another client. Rather, the preferred approach would be either:
Does it sound like I've understood your concern correctly? |
Oh, interesting. Thank you for following up with the screen shots. This makes me think a couple of things:
At a quick glance at the underly conflict detection code, though, it looks like I haven't add it. It would probably go right here. The idea is: when loading that script in an isolated iframe, it creates a global I'll open an internal issue to get that added.
I think this indicates a bug somewhere. If our plugin is adding that If Elementor is enqueuing that kit loader Do you have any way of debugging to figure where that's coming from? |
Update: I added a fix to the core conflict detector code to detect other kits as conflicts, and submitted it for code review. Again, even when that gets released, I think we've still got a problem here regarding where that |
It actually only appear when i enable the Detect Conflicts tool of the Font Awesome Plugin, so i guess is a problem with the functionality. i double checked that the Conflict detection is disabled in the kit configuration |
I've pushed PR #89 in association with this. I also verified that if the plugin were to load a version of |
As for where that It adds ignore attributes for its own scripts, as well as a bunch of standard ones, based on their WordPress resource handle. So that makes me wonder--if Elementor isn't intentionally adding that ignore (it's still possible that it is, though I could not find evidence of that in a quick search in its open source repo)--maybe Elementor happens to be enqueuing that kit loader script with a resource handle that uses the same name as one of those that's being automatically ignored? If you're able to run an experiment, could you try to temporarily add a line of code to cause that function to return an empty list instead? Like this: What I'd like to know is whether returning an empty array here stops the |
Now that #89 has been merged, we've got the additional conflict detection for kits in there. However, as I come back and re-read through this, I remember that there was this question as to why that It still seems that the only way that could be happening is if Elementor is intentionally adding it from their code, or perhaps their code enqueues that kit script with the same resource handle that this plugin uses, which would be |
I use elementor that already add my fontawesome pro kit. Maybe this can be added like an option alongside "use a kit", "use a cdn"
The text was updated successfully, but these errors were encountered: