Forum Replies Created
-
AuthorPosts
-
ColossalYouth
MemberIt's making a bunch of bad requests to the server as well.
You'd expect it to paint fast given how light it is, even with the render-blocking scripts in the head.
July 30, 2018 at 6:03 pm in reply to: Can't enqueue scripts in child theme functions.php – doesn't output HTML #222123ColossalYouth
MemberGood grief, I've spent hours on this and just discovered it was an EOL conversation issue as outlined here:
https://stackoverflow.com/questions/16239551/eol-conversion-in-notepadCommenting in the PHP was breaking the file because Notepad++ had reverted to 'Old Mac Format' for no apparent reason.
Sorry for the hassle Victor.
July 30, 2018 at 5:39 pm in reply to: Can't enqueue scripts in child theme functions.php – doesn't output HTML #222122ColossalYouth
Member*within that function, of course
July 30, 2018 at 5:01 pm in reply to: Can't enqueue scripts in child theme functions.php – doesn't output HTML #222121ColossalYouth
MemberThanks Victor
My bad, I typed that last bit of code directly in the input box here and mixed up 'ver' and 'in_footer'.
Yeah I just can't see what could be wrong in the first example, I'm pretty confident it's not the priority at fault because the other existing scripts without that function load fine, it's just any script that I subsequently add myself won't output in the necessary HTML at all. I'm wondering whether I need to register the script elsewhere or there's some other reference I'm missing? I dug around in the various includes but found nothing relevant.
I did play around with the priority to see if that helped but there was no change.
-
AuthorPosts