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

Pull in per page JS loader #66

Open
scarstens opened this issue Jul 14, 2013 · 1 comment
Open

Pull in per page JS loader #66

scarstens opened this issue Jul 14, 2013 · 1 comment
Assignees
Milestone

Comments

@scarstens
Copy link
Member

built on raprec, pull in functionality to make page by page js inclusion easy.

@ghost ghost assigned scarstens Jul 14, 2013
@scarstens
Copy link
Member Author

Could not find it, or not relevant to global configuration. Would make sense to load it with get_template_part since that ignores files that don't exist BUT YOU CAN'T because it appends PHP file extension. Here is the idea moving it 2.1 which needs modified to work with JavaScript file extensions.

<?php 
do_action('load_js_by_slug', 'js/page.script', PULL PAGE SLUG);
add_action('load_js_by_slug', 'get_template_part', 10, 2);
?>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant