Skip to content
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

How to disable the load of jquery ? #33

Open
Spheerys opened this issue Apr 3, 2013 · 6 comments
Open

How to disable the load of jquery ? #33

Spheerys opened this issue Apr 3, 2013 · 6 comments

Comments

@Spheerys
Copy link

Spheerys commented Apr 3, 2013

Hi,

I'm loading manually the last of jquery.js and I'm looking for a way to disable the load by cliche.

How can I do this ?

@Spheerys
Copy link
Author

Spheerys commented Apr 3, 2013

OK I have found the answer by myself : #15 (comment)

The official doc really should be updated :)

@argnist
Copy link

argnist commented Apr 3, 2013

@Spheerys
Copy link
Author

Spheerys commented Apr 3, 2013

Thank for the others ;)
Do you know if the MODX rtfm is editable by everybody ?
I never found the way to create an account to participate !

@Spheerys Spheerys closed this as completed Apr 3, 2013
@Spheerys
Copy link
Author

Spheerys commented Apr 3, 2013

In fact I have a problem: after disabled the load of jquery, the native CSS doesn't load anymore.
Bug or feature ?

@Spheerys Spheerys reopened this Apr 3, 2013
@argnist
Copy link

argnist commented Apr 3, 2013

"The MODX Documentation Wiki is maintained by community members. If you wish to contribute to the Documentation, please request access by emailing [email protected] with your MODX.com username and what parts of the documentation you'd like to be able of working on."

It's the bug. It uses loadJquery instead of loadCss for CSS loading...
You may change in core\components\cliche\controllers\web\plugins\default\default.class.php
$loadCss = $this->getProperty('loadJquery', true);
to
$loadCss = $this->getProperty('loadCss', true);

@Spheerys
Copy link
Author

Spheerys commented Apr 3, 2013

OK it works !
But I have another problem (ahahah) : I'm loading manualy the last version of jQuery (1.9.1) for other thing.
Moreover, the automatic jquery loaded by Cliche was an old version : 1.4
That's why I wanted to disable the autoload.

But now, with jquery 1.9.1, the fancybox doesn't want to works anymore.
Maybe this version of fancybox is too older for jquery 1.9.1... I'll try to load a new version as new plugin...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants