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

Document.Write Issue #47

Open
sussidio opened this issue Feb 27, 2018 · 6 comments
Open

Document.Write Issue #47

sussidio opened this issue Feb 27, 2018 · 6 comments

Comments

@sussidio
Copy link

Is there any development still happening with this library? Chrome is reporting the following warning when trying to load the Scriptaculous script:

A parser-blocking, cross site (i.e. different eTLD+1) script, https://ajax.googleapis.com/ajax/libs/scriptaculous/1/effects.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.

Any thoughts on a work around or any updates to the script happening anytime soon?

Ben

@madrobby
Copy link
Owner

You're probably using the loader.js script, you can just include the files that you need manually (e.g. just use a normal script tag to load in effects.js).

Do you have this online at a specific URL?

@sussidio
Copy link
Author

Thanks Madrobby for getting back to me.
Yes, you can view the warning messages here (https://www.gbca.org.au/register/)

Cheers,

Ben

@madrobby
Copy link
Owner

yeah, so instead of

<script src="https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/scriptaculous.js?load=effects,controls,dragdrop"></script>

do

<script src="https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/effects.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/controls.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/dragdrop.js"></script>

and all should be good.

@sussidio
Copy link
Author

Yep, thanks allot. I have made the changes to our template files which call the scripts and will test and launch.

Thanks again for your quick response.

@kressly
Copy link

kressly commented Feb 28, 2018

Up till date, scriptaculous and prototypejs remain some of the best. We wish madrobby could consider updating it once in a year. Scriptacilous is still powerful. I use mainly it's inplaceedit and inplaceCollectioneditor editor a lot in my Cm's and it is fast, sp fast and so useful. And there is an inplaceedit plugin with wysiwyg that someone has built on top of it and no other script has something similar that I know of. I have seen some jQuery plugin but it is not the same as the one built with scriptaculous.

Once again Tks for scriptaculous. I am a big Fan

@jwestbrook
Copy link

jwestbrook commented Mar 5, 2018

FYI pull request #48 (already merged into master) should fix this issue

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

4 participants