- Posts: 14
Postings
You can freely browse the forum and post in the community forum.
However, you need a valid license to write posts for support (own a valid commercial software license or have purchased a support membership).
Posts only show once reviewed. This is mainly preventive to keep spam away. Thank you for your understanding!
jQE also removes 'slides.min.jquery.js '
- lliseil
-
Topic Author
- New Member
-
Less
More
IP: 90.51.50.97
13 years 7 months ago #2072
by lliseil
jQE also removes 'slides.min.jquery.js ' was created by lliseil
Hi,
Activating jQuery Easy v1.4.2 also remove
the following script:
templates/../js/slides.min.jquery.js
It's not an issue - since we can add it back right from your script UI.
Joomla! 2.5.9, with a very bizarre template from TemplateHelp and Virtuemart 2.0
Activating jQuery Easy v1.4.2 also remove
the following script:
templates/../js/slides.min.jquery.js
It's not an issue - since we can add it back right from your script UI.
Joomla! 2.5.9, with a very bizarre template from TemplateHelp and Virtuemart 2.0
- admin
-
- Administrator
-
Less
More
- Posts: 1931
IP: 207.229.172.231
13 years 7 months ago #2077
by admin
Olivier.
Replied by admin on topic Re: jQE also removes 'slides.min.jquery.js '
Hello,
I am aware of this issue but I am really undecided on what to do in those cases, as it becomes more of a 'user' decision to determine what is or what is not a jQuery library file. There is no way to tell automatically.
I am not sure my explanations are 'clear'...
It is a matter of restricting the regular expression to finding anything that contains jquery in the name or just taking names that have jquery and anything after that...
Changing the regular expression may change the behavior of some people's websites, so I have to be very careful when I decide on such a modification. I will see if I can make up my mind and include this in the upcoming release.
Thanks for pointing this out to my attention, I will have to brainstorm this one once again. Maybe it is better that the plugin clears out less scripts and leaves the ones that should stay there intact...
I am aware of this issue but I am really undecided on what to do in those cases, as it becomes more of a 'user' decision to determine what is or what is not a jQuery library file. There is no way to tell automatically.
I am not sure my explanations are 'clear'...
It is a matter of restricting the regular expression to finding anything that contains jquery in the name or just taking names that have jquery and anything after that...
Changing the regular expression may change the behavior of some people's websites, so I have to be very careful when I decide on such a modification. I will see if I can make up my mind and include this in the upcoming release.
Thanks for pointing this out to my attention, I will have to brainstorm this one once again. Maybe it is better that the plugin clears out less scripts and leaves the ones that should stay there intact...
Olivier.
The following user(s) said Thank You: lliseil
- admin
-
- Administrator
-
Less
More
- Posts: 1931
IP: 207.229.172.231
13 years 7 months ago - 13 years 7 months ago #2081
by admin
Olivier.
Replied by admin on topic Re: jQE also removes 'slides.min.jquery.js '
I have 'brainstormed' over the issue and came up with a solution that is, I believe, satisfying.
I have come upon another example of a script that was mistakenly tagged as a jQuery library. But this library was only needed for frontend editing. Therefore, adding it again (after its removal) through the field 'add script' is not satisfying as it adds it back, not only to the pages for edition but to the whole website. Now, we have an extra script that is present and not needed.
Therefore, I added an advanced feature in the admin console of the plugin: ignore scripts.
The upcoming version of the plugin will allow you to list the scripts that are usually mistaken as jQuery libraries. This applies only to the libraries built as is:
or any variation of this.
From now on, with this feature, the scripts listed will be ignored from removal whenever present on a page.
I have come upon another example of a script that was mistakenly tagged as a jQuery library. But this library was only needed for frontend editing. Therefore, adding it again (after its removal) through the field 'add script' is not satisfying as it adds it back, not only to the pages for edition but to the whole website. Now, we have an extra script that is present and not needed.
Therefore, I added an advanced feature in the admin console of the plugin: ignore scripts.
The upcoming version of the plugin will allow you to list the scripts that are usually mistaken as jQuery libraries. This applies only to the libraries built as is:
Code:
tada.jquery.js
From now on, with this feature, the scripts listed will be ignored from removal whenever present on a page.
Olivier.
Last edit: 13 years 7 months ago by admin.
