scriptaculous icon indicating copy to clipboard operation
scriptaculous copied to clipboard

Document.Write Issue

Open sussidio opened this issue 7 years ago • 6 comments

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

sussidio avatar Feb 27 '18 22:02 sussidio

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?

madrobby avatar Feb 27 '18 22:02 madrobby

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

Cheers,

Ben

sussidio avatar Feb 27 '18 22:02 sussidio

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.

madrobby avatar Feb 27 '18 23:02 madrobby

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.

sussidio avatar Feb 27 '18 23:02 sussidio

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

kressly avatar Feb 28 '18 06:02 kressly

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

jwestbrook avatar Mar 05 '18 22:03 jwestbrook