I am using inline editor wordpress plugin for wordpress I know that for search engine optimization reasons it is advisable to make certain they are exterior files. After I see the source during my browser I can tell the javascript for inline editor wordpress plugin is displayed within the page code.

It is possible to method to get this to an exterior js file, inside the wordpress framework, or does it need to be inside the page for that wordpress plugin to operate?

interesting help

Regards judi

Anybody know where this really is comming from? I do not view it on my small other websites so it should be from the different wordpress plugin?

<script type="text/javascript">
/* <![CDATA[ */
    var ileNicEditor;
    function startEditing(postId) {
        jQuery("#ileEditLink"+postId).hide(); 
        jQuery("#ileEditButton-"+postId).hide();
        jQuery("#ileCancelButton-"+postId).show();
        ileCreateNicEditor(postId);
    }
    function ileCreateNicEditor(postId) {
        jQuery.ajax({async:false,
                     type:"POST",
                     url:"http://fr.com/wp-content/plugins/inline-editor/ajax-content.php",
                     data:"id="+postId,
                     success:function(data){
                        jQuery("#ileContent-"+postId).html(data);
                     }
                     });
        ileNicEditor = new nicEditor({fullPanel:true,
                                      iconsPath:"http://fr.com/wp-content/plugins/inline-editor/nicEditorIcons.gif",
                                      onSave:function(content,id,instance){ileSave(postId,content)}
                                     }).panelInstance("ileContent-"+postId,{hasPanel:true});;
        jQuery("#ileCancelButton"+postId).show();
    }
    function ileSave(postId,content){
        jQuery.post("http://fr.com/wp-content/plugins/inline-editor/ajax-save.php",
                    {"id":postId,
                     "content":content},
                     function(data){
                         alert(data.message)
                         jQuery("#ileCancelButton-"+postId).click();
                     },
                     "json");
    }
/* ]]> */

</script>

It appears like you are asking if WordPress are designed for utilizing an exterior JS file rather than embedding it between script tags. If that is your question, then yes, just open your theme's header.php and can include the file using:

<script src="http://other-site.com/script.js" type="text/javascript"></script>

Just like every other script include. WordPress works fine with this.

This is triggered incidentally the writer from the wordpress plugin has authored it, the easiest option is to make contact with the writer if the wordpress plugin continues to be maintained and request when they would consider moving the javascript for an exterior stylesheet.

If you wish to do-it-yourself then there'd be pointless the reason why you couldn't take away the inline code and make an exterior javascript file to incorporate in the page but this could need you to feel at ease with modifying the wordpress plugin as there's very difficult method for wordpress to maneuver it for an exterior stylesheet.