Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Adds inline content files to html output

NotificationsYou must be signed in to change notification settings

ibrahimozgon/Asp.net-View-Inline-Content-Helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Adds inline content files to html outputYou can use this library to draw critical css or js files to html output in asp.net mvc projectsYou can find details about critical csshere

Usage

@usingInlineContentHelper.Helpers<html><head>@Html.InlineStyles("critical-style")@Html.InlineScripts("critical-script")</head></html>

Path

You need to add your files under Contents folderContents

=> script=>critical-script.js=>critical-script.mobile.js=> style=>critical-style.js=>critical-style.mobile.js

Mobile View Support

Like ASP.NET MVC Dislay Mode support, InlineContentHelper also support different files in different display mode.If you use

@Html.InlineStyles("critical-style")

library adds .mobile extension for mobile page rendering.

Caching

Library cache inline-files after first fetch. It uses dictionary to cache string items. You can look atFirstLevelCacheManager

About

Adds inline content files to html output

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp