I’m trying the new beta on a test site and it is adding a l10n.js to every page on the site. Any idea what it does? If it’s necessary? How to remove it possibly?
I just get annoyed when random stuff gets thrown into wp_head. I use remove actions for things I don’t need, but don’t see any mention of this in the codex.
If you want to be more specific about it, it will only local when the localize script stuff is triggered, which is actually is, often. Admin bar triggers it, comment reply triggers it, etc. But it is smart enough to not load when it’s not needed. So may advice: ignore it. It’s tiny anyway.
[…] 3.1 is running just a little bit behind schedule. The second beta was released ten days ago and more testers are needed to make sure that the final release […]
James began using WordPress in 2004. Being new to WordPress (and blogging in general), he quickly found the WordPress Support Forums and basically never left. James currently resides in sunny Southern California, where he enjoys bringing happiness to millions of WordPress.com users.
I’m trying the new beta on a test site and it is adding a l10n.js to every page on the site. Any idea what it does? If it’s necessary? How to remove it possibly?
I just get annoyed when random stuff gets thrown into wp_head. I use remove actions for things I don’t need, but don’t see any mention of this in the codex.
Any help would be appreciated. Thanks!
That’s the base javascript to allow for included javascript code in WordPress to be localized. l10n = localization.
Otto, If I’m not using any localization code, do I still need it? Just another request for each visitor.
I noticed WP generating localization code for the Admin Bar, but that’s only for Admins. Why does it need to load for regular visitors?
P.S. I started this thread on StackExchange for WP: http://wordpress.stackexchange.....-remove-it
Yes! Yes, you do, because English is just another localization.
If you want to be more specific about it, it will only local when the localize script stuff is triggered, which is actually is, often. Admin bar triggers it, comment reply triggers it, etc. But it is smart enough to not load when it’s not needed. So may advice: ignore it. It’s tiny anyway.